Work out how much house someone can afford
calculate_affordabilityMaximum affordable home price from income, existing debt payments and available down payment, using the 28/36 qualifying ratios. Reports which of the two ratios is the binding constraint, which is the actionable part: a buyer limited by the back-end ratio can raise their budget by clearing debt, one limited by the front-end ratio cannot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Full US state name, for example "Texas". Used to look up the average property tax rate. Either this or propertyTaxRatePercent is required. | |
| monthlyHoa | No | Monthly HOA dues. | |
| loanTermYears | No | Loan term in years. Most US mortgages are 15 or 30. | |
| annualInsurance | No | Annual homeowners insurance premium. | |
| annualGrossIncome | Yes | Household income before tax, in US dollars per year. | |
| downPaymentAmount | Yes | Cash available for the down payment, in US dollars. A dollar amount, not a percentage. | |
| backEndRatioPercent | No | Maximum total debt as a share of gross income. 36 is conservative; lenders often allow 45 and sometimes 50. | |
| monthlyDebtPayments | No | Existing minimum monthly debt payments: car loans, student loans, credit card minimums. Excludes housing. | |
| frontEndRatioPercent | No | Maximum housing cost as a share of gross income. 28 is the conservative standard. | |
| propertyTaxRatePercent | No | Annual property tax as a percentage of home value. Omit and pass `state` instead to use that state's average. | |
| annualInterestRatePercent | No | Annual nominal interest rate as a percentage, for example 6.5 for 6.5%. |