Hey,
I'm writing a script that will output a PMT similar to Excel. I've
searched the net and I've found a code that works, except if a
FutureValue is required.
Here's what I found (can't remember where, sorry)
function pmt_calc( intrest_rate , months , principal_value , fv ) {
pmt = Math.round( (principal_value * intrest_rate) / (1 - Math.pow(1
+ intrest_rate, -months))*100) / 100;
return pmt;
}
Excel's format is :
Pmt( interest_rate, number_payments, PV, FV, Type )
Any suggestions on how to locate a possible fix to include
FutureValue? Or ideas on how to fix it?
Thanks,
Ryan