calculate_affordability
Maximum home price affordable from household income using the 28/36 rule. Use when the user asks how much house they can afford on their income. For the payment on a specific home price use calculate_mortgage. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive home affordability calculator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term_years | No | Loan term in years; default 30. | |
| down_payment | No | Cash available for down payment in USD. | |
| annual_income | Yes | Gross yearly household income in USD. | |
| monthly_debts | No | Existing monthly debt payments in USD. | |
| back_ratio_pct | No | Back-end ratio percent; default 36. | |
| annual_rate_pct | Yes | Expected mortgage rate percent. | |
| front_ratio_pct | No | Front-end ratio percent; default 28. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |