If a mortgage principal is $200,000, interest rate is 3.50% and the payment is $900 a month. Is there an equation to find how many payments it would take to pay off the loan?
Edit 1
I have tried to solve n and have not been able too. So I tried just solving P to see if your equation comes out with a 1000 and it does not appear to.
I wrote your equation in Python to solve P as shown below. Maybe you can tell me what I am doing wrong?
P=1000
R=50
i=0.04
n=20
print (1-(1+i/12)**n)/(i/12)*R
#The above prints out -1032.30906873
Thank you for your help.
(1+0.04/12)**nfor the formula $(1+i)^{-n}.$ The part where you write0.04/12is OK, because the $i$ in $(1+i)^{-n}$ is the interest per payment period (which is once a month in your example). But notice the minus sign in the exponent of $(1+i)^{-n}$: you should have written**(-n)instead of**n. – David K May 11 '17 at 18:00print (1-(1+i/12)**-n)/(i/12)*Rit comes out to965.839416178. The problem is I don't know how to solven. I tried a few different ways usingLogarithmbut its jut not working. – null_pointer May 11 '17 at 18:36