{{define "content"}} {{$d := .}}

Goals

Committed goals Goal Planner
{{if eq $d.Tab "goals"}} {{/* ─── GOALS TAB ─────────────────────────────────────────────────────── */}} {{if $d.ConflictWarning}}
⚠ {{$d.ConflictWarning}}
{{end}} {{if $d.AvgMonthlySavings}}

Avg monthly savings

€0

last 3 months

Disposable income

€0

before goals

{{if $d.CommittedMonthlyCents}}

Reserved for goals

€0

per month

Free to spend

€0

after goals

{{end}}
{{end}} {{if $d.Goals}}
{{range $d.Goals}}
{{if eq .Type "once"}}🎯{{else if eq .Type "deposit"}}🏠{{else if eq .Type "emergency"}}🛡️{{else}}📈{{end}}
{{.Name}}
{{if eq .Type "once"}}One-off purchase{{else if eq .Type "deposit"}}Deposit / down-payment{{else if eq .Type "emergency"}}Emergency fund{{else}}Recurring investment{{end}}
€{{cents .SavedCents}} saved of €{{cents .TargetCents}} {{.ProgressPct}}%
Need per month
€0
Months left
{{.MonthsLeft}}
At current rate
{{if gt .MonthsAtCurrentRate 0}}
{{.MonthsAtCurrentRate}}mo
{{else}}
{{end}}
Disposable after
€0
{{if .Feasible}} ✓ On track — your current savings rate covers €{{cents .MonthlyCents}}/month with {{.MonthsLeft}} months to go. {{else}} ⚠ At your current rate (€{{cents $d.AvgMonthlySavings}}/mo) you'd reach this in {{.MonthsAtCurrentRate}} months — {{sub .MonthsAtCurrentRate .MonthsLeft}} months late. {{end}} {{if and (not .Feasible) (gt .MonthsAtCurrentRate 0)}}
{{end}}
{{if .Committed}} {{else}} {{end}}
{{end}}
{{else}}
🎯

No goals yet

Use the Goal Planner tab to simulate a goal and save it here.

Open Goal Planner →
{{end}} {{else}} {{/* ─── PLANNER TAB ─────────────────────────────────────────────────────── */}} {{$r := $d.PlanResult}} {{$pr := $d.PurchaseResult}}

What kind of goal?

🛒
Save for a purchase
Car, trip, gadget, fund — save up to a target by a date.
🔄
Sell & upgrade
Own an asset with a loan, acquire something new, sell the old to fund it.
{{if eq $d.PlannerType "purchase"}}

Your purchase goal

{{if $d.HasPurchaseResult}}

At your savings rate

{{if gt $pr.MonthsNeeded 0}}
{{$pr.YearsNeeded}}y {{$pr.RemMonths}}m

reach {{dateShort $pr.ReachDate}}

{{else}}

enter monthly savings

{{end}}

Monthly needed

{{if $pr.HasDeadline}}
€{{cents $pr.MonthlyNeededForDeadline}}

to hit {{dateShort $pr.DeadlineDate}}

{{else}}

set a target date above

{{end}}

Target

€{{cents $pr.TargetCents}}

your goal amount

{{if $pr.HasDeadline}}
{{if $pr.Feasible}} ✓ On track — €{{cents $pr.MonthlySavingsCents}}/mo covers the required €{{cents $pr.MonthlyNeededForDeadline}}/mo. {{else}} ⚠ You need €{{cents $pr.MonthlyNeededForDeadline}}/mo to hit the deadline but you're saving €{{cents $pr.MonthlySavingsCents}}/mo. At your current rate you'll get there in {{$pr.MonthsNeeded}} months ({{dateShort $pr.ReachDate}}). {{end}}
{{end}}

Save as a goal

Adds this to your Goals tab so you can commit to it.

{{end}} {{else if eq $d.PlannerType "transition"}}

Your transition scenario

{{if $d.HasPlanResult}} {{if $r.Warning}}
⚠️ {{$r.Warning}}
{{end}}

Total timeline

{{$r.TotalYears}}y {{$r.TotalRemMonths}}m

until goal is fully paid off

Final monthly cost

€{{cents $r.Phase4MonthlyCents}}

after selling current asset

Total interest

€{{cents $r.TotalInterestCents}}

across both loans

Free by

{{dateShort $r.FinalDate}}

fully paid off

Your roadmap

1
Save down payment
{{if gt $r.Phase1Months 0}}
{{$r.Phase1Months}}mo
until {{dateShort $r.Phase1EndDate}}
Target: €{{cents $r.DownPaymentCents}}
Already have: €{{cents $r.AlreadyHaveCents}}
Still need: €{{cents $r.StillNeededCents}}
Saving: €{{cents $r.Form.MonthlySavingsCents}}/mo
{{else}}
Ready now!
equity covers down payment
Down payment: €{{cents $r.DownPaymentCents}}
Your equity: €{{cents $r.AlreadyHaveCents}}
{{end}}
2
Acquire / build
{{$r.Phase2Months}}mo
until {{dateShort $r.Phase2EndDate}}
New loan: €{{cents $r.ConstructionLoanCents}}
{{if $r.CurrentLoan}}
Existing loan: €{{cents $r.CurrentMonthlyCents}}/mo
{{end}}
New EMI: €{{cents $r.ConstructionMonthly}}/mo
Total burden: €{{cents $r.Phase2MonthlyCents}}/mo
3
Sell & transition
One-time event
after acquisition completes
Sale price: €{{cents $r.SalePriceCents}}
Pay off loan: -€{{cents $r.MortgagePayoffCents}}
Net proceeds: €{{cents $r.NetProceedsCents}}
Applied to new loan
4
Goal achieved
{{if gt $r.Phase4Months 0}}
{{$r.Phase4Months}}mo
paid off {{dateShort $r.Phase4EndDate}}
Remaining loan: €{{cents $r.RemainingBalanceCents}}
Monthly: €{{cents $r.Phase4MonthlyCents}}/mo
{{else}}
Fully paid!
sale proceeds cleared the loan
No remaining loan!
{{end}}

Monthly cost over time

what you pay each month

Save as a goal

Adds this to your Goals tab so you can commit to it.

{{end}}{{/* end HasPlanResult */}} {{end}}{{/* end planner_type transition */}} {{end}}{{/* end tab */}} {{end}}