A simple Svelte 5 web app that helps you explore different repayment strategies for a mortgage (or any loan). You can:
- Enter your current balance and annual interest rate
- Set a baseline monthly repayment
- Compare it against two alternative repayment amounts
- Visualize the loan balance over time with a chart
- See a comparison table showing payoff time, interest, total repayment, and savings
This tool is currency agnostic — just input your values in your local currency.
- Built with Svelte 5
- Interactive loan payoff simulation
- Dynamic line chart using ApexCharts
- Side-by-side comparison table
- Configurable repayment amounts
- Shows interest saved and months saved vs baseline
npm create vite@latest mortgage-planner -- --template svelte
cd mortgage-plannernpm install
npm install svelte-apexcharts apexcharts tailwindcss postcss autoprefixer -Dnpx tailwindcss init -pUpdate tailwind.config.cjs to include:
content: [
"./index.html",
"./src/**/*.{svelte,js,ts}"
]Add Tailwind imports in src/app.css:
@tailwind base;
@tailwind components;
@tailwind utilities;Replace src/App.svelte with the provided code from this repo.
npm run dev- svelte (v5)
- svelte-apexcharts
- apexcharts
- tailwindcss (optional, for styling)
- This planner is approximate. It assumes fixed interest and ignores special cases like moratoriums or progressive disbursements.
- Use it as a planning tool, not an exact financial calculator.
MIT