I was thinking about writing a JAVA program (I just took an intro class at work) to figure out total cost, interest, etc. on a loan. Since I’m feeling a bit lazy at the moment (and my JAVA book is at work), I wonder if anyone knows an algorythm I can code. I’m not looking for the code itself, just the logic. I’m thinking it’s something like this:
principal + (interest * principal / 12) - payment = new-principal
Using a “while” loop, I can total up the amount payed over the life of the loan.
Given the principal amount and the interest rate, what are the formulas for figuring out the monthly payment? That is, “The loan is for $125,000. The interest rate is 10%. The term is 10 years.” What formula will allow me to input these parameters and spit out a monthly payment amount?