Growing money forward
Put P dollars in an account that pays a yearly rate r, compounded n times a year. Each period the balance is multiplied by 1 + r/n, so after t years the future value is
FV = P(1 + r/n)nt
Compounding more often helps, but less and less. If interest compounded every instant (continuous compounding), the growth factor becomes ert, where e ≈ 2.71828. Compare monthly, daily and continuous above: the differences are a few dollars, not thousands. The APY (annual percentage yield) puts every choice on the same footing: it is how much one whole year adds.
Bringing money back: present value
Run the same arithmetic backwards. If you want F dollars in t years, the amount you need today is the present value
PV = F / (1 + r/n)nt
Dividing by the growth factor is called discounting. It is how businesses compare money that arrives at different times, and how a bond or a promise of future payments is priced.
Monthly deposits: an annuity
A deposit of D every month is an annuity. Here deposits are monthly, so the page first turns any compounding into the matching monthly rate i = (1 + r/n)n/12 − 1 (for continuous, i = er/12 − 1). With N = 12t deposits made at the end of each month,
FV = P(1 + i)N + D[(1 + i)N − 1] / i
Deposits made at the start of each month earn one extra month, so the deposit part is multiplied by 1 + i. Solving the same equation for D gives the deposit needed to reach a goal; that is what Deposit needed does, and what a spreadsheet’s =PMT does.
Reading the spreadsheet formula
=FV(rate, nper, pmt, pv, type), =PV(rate, nper, pmt, fv, type) and =PMT(rate, nper, pv, fv, type) work in Excel, Google Sheets and LibreOffice. The rate and the number of periods must match: a monthly rate with a count of months. Money you pay in is entered as a negative number and money you get back comes out positive, which is why the page writes −200 for a deposit and why =PV and =PMT answer with a minus sign.