Try this calculator.
http://www.mil-rad.com/scope_ring_calculator
I haven't had time to add this yet, if you have a 20MOA canted scope mount, subtract an additional 0.8866mm from the clearance result, for every 6 inches between the front of the rail to the front of your scope (objective side).