{
  "tool_id": "rent_vs_buy_break_even",
  "slug": "rent-vs-buy-calculator",
  "path": "/rent-vs-buy-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/rent-vs-buy-calculator/?<params>",
  "sample_input": {
    "tool": "rent_vs_buy_break_even",
    "home_price": 500000,
    "down_payment_percent": 20,
    "mortgage_rate_percent": 6,
    "loan_term_years": 30,
    "monthly_rent": 2600,
    "rent_growth_percent": 3,
    "home_appreciation_percent": 3,
    "property_tax_percent": 1.2,
    "annual_home_insurance": 1800,
    "annual_maintenance_percent": 1,
    "hoa_monthly": 0,
    "closing_costs_percent": 3,
    "selling_costs_percent": 6,
    "investment_return_percent": 6,
    "analysis_years": 10
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "home_price": {
        "type": "integer"
      },
      "down_payment_percent": {
        "type": "integer"
      },
      "mortgage_rate_percent": {
        "type": "integer"
      },
      "loan_term_years": {
        "type": "integer"
      },
      "monthly_rent": {
        "type": "integer"
      },
      "rent_growth_percent": {
        "type": "integer"
      },
      "home_appreciation_percent": {
        "type": "integer"
      },
      "property_tax_percent": {
        "type": "number"
      },
      "annual_home_insurance": {
        "type": "integer"
      },
      "annual_maintenance_percent": {
        "type": "integer"
      },
      "hoa_monthly": {
        "type": "integer"
      },
      "closing_costs_percent": {
        "type": "integer"
      },
      "selling_costs_percent": {
        "type": "integer"
      },
      "investment_return_percent": {
        "type": "integer"
      },
      "analysis_years": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "home_price",
      "down_payment_percent",
      "mortgage_rate_percent",
      "loan_term_years",
      "monthly_rent",
      "rent_growth_percent",
      "home_appreciation_percent",
      "property_tax_percent",
      "annual_home_insurance",
      "annual_maintenance_percent",
      "hoa_monthly",
      "closing_costs_percent",
      "selling_costs_percent",
      "investment_return_percent",
      "analysis_years"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "breakEvenMonth": {
        "type": "null"
      },
      "monthlyCashflow": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "month": {
              "type": "number"
            },
            "year": {
              "type": "number"
            },
            "buyerOutflow": {
              "type": "number"
            },
            "rentOutflow": {
              "type": "number"
            },
            "homeValue": {
              "type": "number"
            },
            "remainingLoanBalance": {
              "type": "number"
            },
            "equityIfSold": {
              "type": "number"
            },
            "renterInvestmentBalance": {
              "type": "number"
            },
            "netAdvantageBuyMinusRent": {
              "type": "number"
            }
          }
        }
      },
      "scenarioBand": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "breakEvenMonth": {
              "type": "null"
            },
            "netAdvantageAtHorizon": {
              "type": "number"
            }
          }
        }
      },
      "summary": {
        "type": "object",
        "properties": {
          "buyAheadAtHorizon": {
            "type": "boolean"
          },
          "netAdvantageAtHorizon": {
            "type": "number"
          },
          "equityAtHorizon": {
            "type": "number"
          },
          "renterInvestmentAtHorizon": {
            "type": "number"
          },
          "cumulativeBuyerOutflow": {
            "type": "number"
          },
          "cumulativeRentOutflow": {
            "type": "number"
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "homePrice": {
            "type": "number"
          },
          "downPaymentPercent": {
            "type": "number"
          },
          "downPaymentAmount": {
            "type": "number"
          },
          "mortgageRatePercent": {
            "type": "number"
          },
          "loanTermYears": {
            "type": "number"
          },
          "monthlyRent": {
            "type": "number"
          },
          "rentGrowthPercent": {
            "type": "number"
          },
          "homeAppreciationPercent": {
            "type": "number"
          },
          "propertyTaxPercent": {
            "type": "number"
          },
          "annualHomeInsurance": {
            "type": "number"
          },
          "annualMaintenancePercent": {
            "type": "number"
          },
          "hoaMonthly": {
            "type": "number"
          },
          "closingCostsPercent": {
            "type": "number"
          },
          "closingCostsAmount": {
            "type": "number"
          },
          "sellingCostsPercent": {
            "type": "number"
          },
          "investmentReturnPercent": {
            "type": "number"
          },
          "analysisYears": {
            "type": "number"
          }
        }
      }
    }
  }
}
