calculate_affordability
Determine your maximum affordable mortgage by applying standard 28% and 43% debt-to-income limits to your income, debts, interest rate, and loan term.
Instructions
Calculate the maximum affordable mortgage using standard DTI guidelines.
Applies the conventional 28% front-end (housing-only) and 43% back-end (all-debt) debt-to-income limits. The binding constraint determines the maximum monthly payment, which is then inverted to a maximum loan principal. Purchase price projections are shown for 3%, 5%, 10%, and 20% down payments.
Args: annual_gross_income: Borrower's gross annual income before taxes. monthly_debt_payments: Existing monthly obligations (car, student loans, etc.). annual_interest_rate: Target mortgage rate as a percentage. loan_term_years: Desired loan term in years.
Returns: JSON object with max loan amount, payment caps, and purchase price scenarios.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loan_term_years | Yes | ||
| annual_gross_income | Yes | ||
| annual_interest_rate | Yes | ||
| monthly_debt_payments | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |