|
One thing we need to get straight from the beginning is the timing of the interest and contributions.
We're going to assume that the balance of the account for any particular year includes the interest growth from last year, but does not yet include the new contribution.
(This is the way most people do it, but sometimes you'll see an example that assumes a different schedule; they will disagree with our formula by the equivalent of one year's interest and/or one year's contribution).
We'll write c for the annual contribution; and to keep things cleaner we'll write "z" for (1 + r).
Now we start writing down the account balance for the first few years:
| Year | Balance |
| Now | P |
| 1 | (P + c)z |
| 2 | ((P + c)z + c)z |
In other words, to go from one year's balance to the next, you add on the contribution c, then multiply by z to get the interest.
If you multiply these terms out, you'll start to see the pattern emerge:
| Year | Balance |
| Now | P |
| 1 | Pz + cz |
| 2 | Pz2 + c(z + z2) |
| n | Pzn + c(z + z2 + . . . + zn) |
The second part of that last line is just c times the sum of a geometric series.
So you can boil the whole thing down to:
| 1. |
Balance(n) = Pzn + c[(zn + 1 - z)/(z - 1)]
|
Finally, write z out in terms of r, to get the formula we're looking for:
| 2. |
Balance(n) = P(1 + r)n + c[((1 + r)n + 1 - (1 + r))/r]
|
|