I can't give you a precise formula, but the basic variables you will need are a dyno curve, gear ratios, final drive ratio and the diameter of your tires (i think you need this last one).
http://www.vettenet.org/torquehp.html
this article should give you a good idea of whats going on and why gears and torque are good.