In general, there is Pinhole Designer, a Windoze-based program available as freeware, as well as an online calculator at Mr Pinhole that can be used to crunch a lot of these numbers (for those who don't like algebra problems ).

There is also a bunch of info available through the links at the WPPD Resources Page.