Mortgage Affordability Calculator (Canada)
mortgage_affordabilityWork out the maximum home price a Canadian buyer qualifies for: binary-searches the price that keeps both the GDS (39%) and TDS (44%) ratios satisfied at the OSFI stress-test rate, honouring the Dec-2024 minimum down payment tiers and the $1.5M CMHC insurability ceiling. Returns max price, max mortgage, CMHC premium, monthly payment, and the GDS/TDS ratios.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| province | No | Ontario | |
| condoFees | No | Monthly condo fees — 50% counts toward GDS/TDS for condos | |
| downPayment | Yes | Down payment — dollars, or a percent if downPaymentMode='percent' | |
| annualIncome | Yes | Primary applicant gross annual income in CAD | |
| monthlyDebts | No | Other monthly debt payments (car, cards, student loans) | |
| propertyType | No | single-family | |
| monthlyHeating | No | Estimated monthly heating cost in CAD | |
| downPaymentMode | No | dollar | |
| interestRatePct | No | Contract mortgage rate as a percent, e.g. 4.79 | |
| amortizationYears | No | ||
| annualPropertyTax | No | Estimated annual property tax in CAD | |
| coApplicantIncome | No | Co-applicant gross annual income in CAD (0 = none) |