Apr-03-2019, 08:33 AM
r is the int rate (keep in mind that the formula divides this number by 100, so if let's say you want to use
13%, just write 13)
n is the number of years (not using that for now)
A is just a constant paid every year, it can be called anything.
just to state the problem again, let's say I borrow an original balance of 10000 in the year 2010.
in the year 2011 my loan will go down to 10000*(13/100 +1) - A.
and for the year 2012 I have to plug in this newly obtained number into the formula and so on...
So let' say that I need to find out my current loan in the year 2015, how should I correct my code?
13%, just write 13)
n is the number of years (not using that for now)
A is just a constant paid every year, it can be called anything.
just to state the problem again, let's say I borrow an original balance of 10000 in the year 2010.
in the year 2011 my loan will go down to 10000*(13/100 +1) - A.
and for the year 2012 I have to plug in this newly obtained number into the formula and so on...
So let' say that I need to find out my current loan in the year 2015, how should I correct my code?