Sub topic 8
Building a savings plan and timeline
This chapter assumes you already know your monthly essential expenses and have chosen a target in months of expenses. It also assumes you have picked a separate, low-risk account to hold the fund. If you haven't done those steps, do them first. The plan below depends on them.
A target such as "9,300" doesn't tell you what to do next month. A savings plan converts it into a deposit amount and a date. This chapter shows how to calculate both, how to test whether the plan is realistic, and how to adjust it.
The three numbers in every plan
Every savings plan comes down to three quantities. If you know two, you can calculate the third.
- Gap: the target minus what you have already saved.
- Monthly deposit: the amount you move into the fund each month.
- Timeline: the number of months until the gap is closed.
Suppose your essentials total 3,100 a month and you chose a 3-month target. The target is 9,300. You have 1,000 saved, so the gap is 8,300.
| You choose | You calculate | Example result |
|---|---|---|
| Monthly deposit of 400 | Timeline | 21 months |
| Timeline of 12 months | Monthly deposit | 692 per month |
| Timeline of 24 months | Monthly deposit | 346 per month |
Picking the timeline first is useful when you have a deadline. An example is a job change or a planned move. Picking the deposit first is useful when your budget is tight and you want to know how long the plan will take.
Start from your real surplus
The deposit must come from money you actually have. Take your average monthly income after tax and subtract your average monthly spending. Use the last three months of statements, not what you intend to spend. The difference is your surplus.
A plan that needs more than your surplus fails quietly. You skip a deposit, feel behind, and stop. Choose a deposit you can sustain, then lengthen the timeline if needed.
If the surplus is too small for any useful deposit, you have two options. You can reduce flexible spending, such as subscriptions, dining out, and other non-essential categories. Or you can raise income, for example with extra shifts or by selling things you no longer use. Both are legitimate. A short, aggressive push, such as a few months of tightened spending, can also be a way to finish the starter milestone quickly.
Calculating the timeline in code
The first calculation is a simulation. It adds the deposit each month until the balance reaches the target.
def months_to_goal(target, balance, monthly_deposit, annual_rate=0.0):
months = 0
while balance < target:
balance = balance * (1 + annual_rate / 12) + monthly_deposit
months += 1
if months > 600:
raise ValueError("Goal not reached within 50 years")
return months
print(months_to_goal(9300, 1000, 400))This prints 21. The simulation applies interest first and then adds the deposit, so each deposit is made at the end of the month. The guard at 600 months prevents an endless loop. That happens when the deposit is zero and the rate is zero, or when the deposit is negative.
You can also pass an interest rate. A high-yield savings account paying 4% a year is a realistic example.
def months_to_goal(target, balance, monthly_deposit, annual_rate=0.0):
months = 0
while balance < target:
balance = balance * (1 + annual_rate / 12) + monthly_deposit
months += 1
if months > 600:
raise ValueError("Goal not reached within 50 years")
return months
print(months_to_goal(9300, 1000, 400, annual_rate=0.04))This prints 20. Interest saves one month here. Interest helps less than people expect at this scale, because the balances are small and the rate is modest. Your deposit does most of the work. Don't plan around interest, and treat it as a small bonus.
Calculating the deposit for a fixed timeline
To work backward from a deadline, divide the gap by the number of months and round up. Rounding up matters. If you round down, you finish a few units short.
import math
def deposit_needed(target, balance, months):
gap = max(target - balance, 0)
return math.ceil(gap / months)
for months in (12, 18, 24, 36):
print(months, "months:", deposit_needed(9300, 1000, months), "per month")The output is 692, 462, 346 and 231 per month. This version ignores interest. That makes it slightly pessimistic, which is the safer error for a plan.
Stage the plan with milestones
One large target over two years is hard to stay motivated for. Split the plan into stages that match the starter milestone and the full target.
- Starter milestone. Save a small buffer first, such as 1,000 or one month of essentials, whichever you choose. This covers the most common small shocks, like a car repair or an urgent medical copay.
- One month of essentials. At 3,100 in this example, this protects you against a short gap in income.
- Three months. This is the full target in the example, 9,300.
- Six months or more. This applies if your risk factors justify it. For this example the figure is 18,600.
Each stage is a checkpoint. Reaching one is a reason to confirm the plan still fits your life, and you can raise or lower the deposit at that point.
Handling uneven income
The formulas above assume the same deposit every month. If your income varies, as it does for freelancers and commission earners, a fixed deposit can break the plan in a lean month.
Use one of these approaches:
- Base plus bonus. Set a small fixed deposit that you can always afford. In months where income is higher than usual, add a second deposit.
- Percentage of income. Move a fixed share of each payment, such as 10%, into the fund when it arrives. The deposit rises and falls with income.
- Plan on the lean months. Base the fixed amount on your lowest typical month, not your average.
For the timeline, use the base deposit as the pessimistic estimate and the average as the optimistic one. Report both to yourself as a range, such as "18 to 24 months".
Windfalls and one-off money
Tax refunds, bonuses, and gifts can shorten the timeline a lot. A 2,000 refund applied to a gap of 8,300 reduces it to 6,300. At 400 a month, that is about 16 months instead of 21.
Decide in advance what share of windfalls goes to the fund. A fixed rule, such as half until the target is reached, removes the need to decide each time. Spending temptation is highest when the money arrives, so a rule made in advance helps.
Stress-test the plan
Before you commit, ask what happens when a month goes badly. Check these cases:
- A missed deposit. If you skip one month, how many months does the timeline slip? With a 400 deposit, each skipped month adds one month.
- Rising expenses. If your essentials grow by 5%, the target grows by 5% too. A 3,100 base becomes 3,255, and the 3-month target rises from 9,300 to 9,765. Recheck the target at each checkpoint.
- An emergency partway through. If you use the fund, the plan restarts from a lower balance. The later chapter on rebuilding covers this. You can still model it now by running
months_to_goalwith the new balance.
The simulation function makes these checks cheap. Change one input and run it again.
Common errors in building the plan
- Using the wish, not the surplus. The deposit must fit your real budget.
- Forgetting that the target moves. Essentials change, so the target does too. Recalculate at every checkpoint.
- Counting interest on small balances. Interest at 4% on 1,000 is about 3 or 4 a month. It doesn't change the timeline much.
- Rounding the deposit down. Use
math.ceil, not integer division, so you don't undershoot the target. - Having no end date. A plan without a date drifts. Write the target date down, and note when each stage should finish.
Exercise
Exercise
Your essentials total 2,800 a month. You want a 3-month fund, you have 1,200 saved, and you can deposit 350 a month with no interest. How many months will it take, and what deposit would you need to finish in 12 months?
Show answer
The target is 2,800 × 3 = 8,400. The gap is 8,400 − 1,200 = 7,200. At 350 a month, 7,200 / 350 = 20.57, which rounds up to 21 months. To finish in 12 months, you need 7,200 / 12 = 600 a month. You can check the first answer with monthstogoal(8400, 1200, 350), which prints 21.
Exercise
Your income varies. In your three leanest months you had a surplus of 300, and your average surplus is 700. Describe a deposit plan that works for a gap of 7,200, and give a timeline range.
Show answer
Use a fixed base deposit of 300, which you can afford even in a lean month, and add extra deposits in months when the surplus is higher. At 300 a month only, the timeline is 7,200 / 300 = 24 months, which is the pessimistic estimate. At the average surplus of 700, it is 7,200 / 700 = 10.29, which rounds up to 11 months, the optimistic estimate. The timeline range is therefore about 11 to 24 months.