Please don't send me email asking for my script for free. I'm all for the free flow of ideas and so on, but with everything else that I do on a volunteer basis, I just don't have the time to support novice programmers. (If you aren't a novice programmer, you should easily be able to do this yourself.)
You are also free to link to my loan calculator, so for amateur projects, I don't even see that you need the code. (And if it is a professional project, why should I spend my time for your gain?)
I got the formula from page 17-1 of the manual for my HP32SII calculator:
P*( (1 - (1+(I/100))^-N) / (I/100)) + F(1 + (I/100))^-N + B = 0where:
I'm sorry, but I will probably ignore any mail I get on the subject. I just don't have the time to deal with it.