I found this amazing Loan Amortization Calculator:
It can be downloaded from here:
Its a great thing to integrate in your website if its a financial website…
Just tweak it to your needs. It has a flaw that can be corrected as below:
Annual Rate and Monthly Rate are displayed wrong. So multiply them by 100 to get the correct value.