Canadian Mortgage Stress Test (OSFI B-20)
mortgage_stress_testCheck a purchase, renewal or refinance against the OSFI stress test: qualifying rate (higher of contract + 2% or 5.25%), GDS/TDS at 39/44, pass/close/fail, max home price for a purchase, and how far off a fail is. Straight-switch renewals are exempt unless the amount or amortization increases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | No | Buying, renewing, or refinancing | purchase |
| homePrice | Yes | Purchase price, or current home value for renewal/refinance, in CAD | |
| downPayment | No | Purchase only: down payment in CAD | |
| annualIncome | Yes | Main applicant gross annual income in CAD | |
| monthlyHeating | No | Monthly heating cost in CAD | |
| renewalRatePct | No | Renewal only: rate you are renewing into, percent | |
| contractRatePct | No | Contract interest rate as a percent | |
| additionalBorrow | No | Refinance only: extra cash to borrow in CAD | |
| monthlyCondoFees | No | Monthly condo fees in CAD (50% counts) | |
| amortizationYears | No | Amortization in years (5–30) | |
| coApplicantIncome | No | Co-applicant gross annual income in CAD (0 if none) | |
| renewalIncreasing | No | Renewal only: increasing the amount or amortization (then the stress test applies) | |
| monthlyPropertyTax | No | Monthly property tax in CAD | |
| outstandingBalance | No | Renewal/refinance only: balance owing in CAD | |
| monthlyDebtPayments | No | Other monthly debt payments in CAD | |
| renewalWithNewLender | No | Renewal only: switching to a new lender |