This I think should do.

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