Here's a link to a pinhole calculator. I use it. It might help.

http://www.mrpinhole.com/calcpinh.php

Other calculators are available on the left side menu. I rarely venture into that section.