Linked Questions

Popular Questions

What am I missing on this javascript loan calculator?

Asked by At

I am trying to build a very simple loan calculator in js where the user enters an amount, an interest rate and either a monthly payment or a length of time to pay the loan and then the calculator is supposed to show the results with a monthly payment amount, a total time for the loan and a total repayment amount including interest.

I'm sure my math is correct on this, but it won't seem to calculate. I did have it working in a previous version, so I think I might be missing something. Hopefully, one of you reading this is eagle eyed enough to tell me what I've done wrong.

Here's the code: http://jsfiddle.net/LsJ5U/

Thanks in advance for any help you guys can offer.

Cheers,

Ian

Related Questions