How we calculate
This is how Savegoal calculates how much to save each month and how long it takes to reach your goal.
The formulas, step by step
- We turn the annual return r (in %) into a monthly rate:
i = r / 100 / 12 - How much to save each month, where M is your goal, P what you start with and m the months:
A = (M − P × (1+i)^m) × i / ((1+i)^m − 1)With no return (i = 0):A = (M − P) / mIt's never below 0: if you already get there, the result is 0. - How long it takes, saving A each month (rounded up):
meses = ln((M × i + A) / (P × i + A)) / ln(1 + i)With no return:meses = (M − P) / A - Balance at month k, used for the chart:
P × (1+i)^k + A × ((1+i)^k − 1) / i - Savings are added at the end of each month.
Worked example
A goal of US$100,000 in 24 months, starting from US$0 and with no return:
01 · What's left for your goal
US$100,000.00
M − P = US$100,000 − US$002 · Monthly rate
0
i = 0 / 100 / 1203 · Monthly savings
US$4,166.67
A = (M − P) / m = US$100,000 / 2404 · Check: months to get there
24
⌈(M − P) / A⌉ = ⌈US$100,000 / US$4,166.67⌉What it doesn't include
It doesn't include inflation, fees, taxes or changes in the return. It's an estimate with a fixed return.
Each formula is checked against cases worked out by hand.