This mortgage calculator can be used to figure out monthly payments of a home mortgage loan. This calculator automatically factors in PMI for loans where less than 20% is put as a down payment. Also taken into consideration are the town property taxes based on the mortgaged property's assessed valued.
The code for PHP Mortgage Calculator is free and can probably be downloaded from http://davetufts.com