Essa Shakeel Finance 100 #11 · Budgeting & Cash Flow View source on GitHub

Savings Goal Planner

Juggle several savings goals and see which deadlines your budget can actually hit.

Your savings

Goals

Priority 1 is funded first. Deadlines are months. Savings for a goal start next month.

Results

Needed each month against what the plan allows

How it works

For each goal, the monthly deposit is the amount that grows what you have now to the target by the deadline. Interest compounds monthly. With 0% interest the deposit is simply (target - current) / months.

The deposit uses the standard annuity formula, PMT = r x (target - current x (1 + r)^n) / ((1 + r)^n - 1), where r is the annual rate divided by 12 and n is the number of months to the deadline. Deposits are made at the end of each month.

Money goes to goals in priority order. A goal gets the full amount it needs if the savings cover it. Otherwise it gets what is left and is shown as short by the difference. Any savings left after all goals are shown as spare.

Limits: the rate is one flat figure, not a fund return that can go up or down. Goals already at target need nothing more. A goal whose deadline has passed is marked, not funded.