mortgage loan calculator in php?

FastRabbit08PL

New member
Can anyone help me with how to write a script for this? These are the directions
You will need to convert the interest rate (an integer) to a decimal value (a floating point value) for the computation. In the above example, 8 percent will need to be converted to .08 before you perform the computation. To do this, divide the interest variable by 100.
You will enter a number of years for the loan on the form, but the algorithm requires you to know the process of months. To convert the number of years to a number of months, multiply your years variable by 12.
As with all complex problems, you'll need to break this one down into discreet steps. It might help you to work out the math needed to get the answer on paper first, then use that to help you figure out what steps you'll need to take, in what order, to take a principal loan value, an interest rate, and a length in years and convert it into a monthly payment and total payment value.
 
Back
Top