{
  "tool_id": "mortgage_affordability",
  "slug": "mortgage-affordability-calculator",
  "path": "/mortgage-affordability-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/mortgage-affordability-calculator/?<params>",
  "sample_input": {
    "tool": "mortgage_affordability",
    "annual_income": 140000,
    "down_payment": 90000,
    "monthly_debt_payments": 700,
    "max_dti_percent": 43,
    "mortgage_rate_percent": 6.5,
    "loan_term_years": 30,
    "property_tax_rate_percent": 1.2,
    "annual_home_insurance": 2400,
    "hoa_monthly": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "annual_income": {
        "type": "integer"
      },
      "down_payment": {
        "type": "integer"
      },
      "monthly_debt_payments": {
        "type": "integer"
      },
      "max_dti_percent": {
        "type": "integer"
      },
      "mortgage_rate_percent": {
        "type": "number"
      },
      "loan_term_years": {
        "type": "integer"
      },
      "property_tax_rate_percent": {
        "type": "number"
      },
      "annual_home_insurance": {
        "type": "integer"
      },
      "hoa_monthly": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "annual_income",
      "down_payment",
      "monthly_debt_payments",
      "max_dti_percent",
      "mortgage_rate_percent",
      "loan_term_years",
      "property_tax_rate_percent",
      "annual_home_insurance",
      "hoa_monthly"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "maximumMonthlyHousingBudget": {
        "type": "number"
      },
      "comfortableMonthlyHousingBudget": {
        "type": "number"
      },
      "maximumHomePrice": {
        "type": "number"
      },
      "comfortableHomePrice": {
        "type": "number"
      },
      "maximumLoanPrincipal": {
        "type": "number"
      },
      "comfortableLoanPrincipal": {
        "type": "number"
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "annualIncome": {
            "type": "number"
          },
          "downPayment": {
            "type": "number"
          },
          "monthlyDebtPayments": {
            "type": "number"
          },
          "maxDtiPercent": {
            "type": "number"
          },
          "mortgageRatePercent": {
            "type": "number"
          },
          "loanTermYears": {
            "type": "number"
          },
          "propertyTaxRatePercent": {
            "type": "number"
          },
          "annualHomeInsurance": {
            "type": "number"
          },
          "hoaMonthly": {
            "type": "number"
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      }
    }
  }
}
