I created an excel worksheet to do these calculations and posted it on google docs. Here is the link if anyone wants to download it.

https://docs.google.com/a/qmail.qcc....2MWNl&hl=en_US