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

Goals

{{if $d.AvgMonthlySavings}}

Avg monthly savings

€0

last 3 months

Disposable income

€0

this month

{{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 the required €{{cents .MonthlyCents}}/month with {{.MonthsLeft}} months to go. {{else}} ⚠ At your current savings rate (€{{cents $d.AvgMonthlySavings}}/mo) you'd reach this in {{.MonthsAtCurrentRate}} months, missing the deadline by {{sub .MonthsAtCurrentRate .MonthsLeft}} months. {{end}}
{{end}}
{{else}}
🎯

No goals yet

Plan a purchase, a house deposit, or an emergency fund.
See exactly how much you need to save each month to get there.

{{end}} {{end}}