M

Mortgage Sweep Dashboard

Parameter sweep analysis & comparison

0
Files loaded
Total rows
Best total cost
?
How to use

Mortgage Sweep Dashboard

User Guide

Overview

This tool runs parameter sweeps across mortgage scenarios — varying points paid, down payment, and target monthly payment — and lets you visualize the tradeoffs. There are three tabs: Analysis for charting loaded CSVs, Balance Over Time for plotting amortization curves, and Run Sweep to generate new results directly in the browser.

Quick Start

1
Click Run Sweep tab. Set your purchase price and loan constants, then define start / stop / step ranges for each parameter.
2
Add filters to narrow results — e.g. funds_needed lt 60000 to only see scenarios where cash-to-close is under $60k.
3
Click ▶ Run Sweep. The engine runs in your browser — no server needed. Progress bar tracks completion.
4
Click → Load into Analysis to chart the results immediately, or ⬇ Download CSV to save the file (named sweep_<price>_<uuid>.csv).
5
In the Analysis tab, pick X axis, Y axis, and Color By to explore the data. Click any point to highlight its row in the table below.
6
Switch to Balance Over Time to select individual scenarios and see how their loan balance declines month by month — side by side on one chart.

Balance Over Time Tab

  • Scenarios are listed sorted by total lifetime cost (cheapest first). Each shows rate, down payment, points, payoff years, and total cost.
  • Click any scenario to toggle it on/off. Selected scenarios each get a distinct color and are plotted as amortization curves.
  • Best 5 (cost) auto-selects the five lowest total-cost scenarios. All selects up to 20. None clears the selection.
  • Hover the chart to see the exact remaining balance for each scenario at any month. X-axis tick labels show year markers.
  • The chart re-simulates the full 360-month amortization in the browser, including dynamic PMI cancellation and target-based extra payments.

Sweep Parameters

  • Points % of Loan — enter whole numbers. -1 = 1% lender credit (reduces closing costs, raises rate). 2 = 2 points paid (reduces rate, increases closing costs). Range is divided by 100 automatically.
  • Down Payment % — whole number percentage of purchase price. 10 = 10% down. PMI applies below 20%.
  • Target Monthly Payment — total you want to pay each month. Extra above the base payment (P&I + escrows + PMI) goes to principal. When PMI drops off, that savings automatically becomes extra principal to keep you at your target.

Filters

  • Filters apply to any output field. Supported operators: lt le gt ge eq ne
  • All filters must pass for a row to appear in results.
  • Common filters: funds_needed lt 60000 · payoff_years lt 20 · pmi_dropoff_month lt 48

Loading External CSVs

Drop any sweep_results.csv produced by mortgage_sweep.py into the sidebar on the Analysis tab. Multiple files load side by side — each gets its own color. Use Color By → CSV File to compare runs.

Key Output Fields

  • total_cost — total interest paid over loan life + points cost. The truest apples-to-apples comparison.
  • funds_needed — cash needed at closing: down payment + closing costs + prepaids − earnest money.
  • pmi_dropoff_month — month when balance falls below your LTV threshold and PMI cancels.
  • payoff_years — how long until the loan is fully paid off, accounting for extra payments.
  • start_payment — total month-1 payment including PMI and any extra.
Analysis
Balance Over Time
Run Sweep

Drop your sweep_results.csv files into the sidebar to begin.
Multiple files can be compared simultaneously.

Result Table

No data Click header to sort · Click row to highlight
Browse
Filter

Select Scenarios

Pick rows to plot their amortization curves. Sorted by total lifetime cost.

0 scenarios
No data loaded.
Drop a CSV or run a sweep first.

Filter Scenarios

Narrow the list by sweep parameter ranges. Hit Apply to update.

Points % any
Down Payment % any
Target Payment ($) any
Rate % any
Payoff Years any
Funds Needed ($) any
PMI Drops Off (month) any

Remaining Balance Over Time

Select scenarios to plot

Select scenarios from the list to plot their amortization curves.

Property & Loan Constants
Purchase Price ($)
Par Rate (0-pt rate)
Cost per 1% Rate ($)
PMI Drop-off LTV (%)
PMI Monthly ($)
Monthly Escrow Costs
Insurance / mo ($)
1st Yr Insurance ($)
Tax % of Home Value
Tax Monthly ($) auto-calc

Tax monthly is auto-calculated from Tax % × Purchase Price ÷ 12. Edit Tax % to adjust.

Closing Costs

Fixed fees added to total closing costs. Points are calculated separately from sweep parameters.

Appraisal ($)
Credit/Flood/Tax Svc ($)
Closing / Title Ins ($)
Recording Fee ($)
Misc Credits ($) negative = credit
Underwriting / Origination ($)
Pre-paid Interest ($)
Earnest Money (% of price)
Sweep Parameters

Define start / stop / step for each axis — or enter a single value to hold it fixed.

Points % of Loan

Enter whole numbers — e.g. -1 = 1% lender credit, 2 = 2 points paid. Values are divided by 100 before calculation.

Start
Stop
Step
Down Payment %
Start
Stop
Step
Target Monthly Payment ($)
Start
Stop
Step
Output Filters

Only rows matching all filters will appear in the CSV. Operators: lt < le ≤ gt > ge ≥ eq = ne ≠

Config Preview
{ }
Sweep Summary
Configure parameters above to see combination count.
Ready — configure parameters and click Run.