Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to solve the compound interest formula $$V = Pz^n + c\left(\frac{z^{n+1}-z}{z-1}\right)$$ for $n$. Or, given what I would like the final value to be, the amount I can save a year, an interest rate, and how much money I have to invest initially, I would like to find how long it would take to reach my goal.

share|cite|improve this question
up vote 1 down vote accepted

We have: \begin{align*} V &= Pz^n + c\left(\frac{z^{n+1}-z}{z-1}\right)\\ V(z-1) &= Pz^n(z-1) + cz^{n+1} - cz\\ V(z-1) &= Pz^{n+1} - Pz^n + cz^{n+1} - cz\\ V(z-1) + cz &= z^n(Pz - P + cz)\\ \frac{V(z-1) + cz}{(P+c)z - P} &= z^n\\ \ln(V(z-1)+cz) - \ln((P+c)z - P) &= n\ln(z), \end{align*} so $$n= \frac{\ln(V(z-1)+cz) - \ln((P+c)z-P)}{\ln z}.$$ You can use logarithms base 10 (or any base) if you prefer.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.