You'll find your answer in a rcent issue of Photo Techniques magazine:

"Darkroom Tips and Tricks by Ctein (No. 6, pg. 46)"

I can't remember all of it so you're better off finding a copy and reading. I'm not at home or I'd look it up. There's a "+1" in the formula that we always forget (it gets subtracted out when you go backwards)