calculate_mortgage
Compute monthly mortgage payments using live state-specific interest rates. Enter home price, down payment, and loan details to get an accurate estimate.
Instructions
Calculate monthly mortgage payment with live state-specific rates using HomeSlice API
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Two-letter state code (e.g., FL, CA, TX). Used to determine the average interest rate | |
| loan_term | No | Loan term in years (15, 20, 30, or 40) | |
| home_price | Yes | The listing price of the home | |
| monthly_hoa | No | Monthly cost of homeowner's association (HOA) fees in dollars | |
| monthly_pmi | No | Monthly cost of private mortgage insurance (PMI) in dollars | |
| interest_rate | No | Annual interest rate as percentage (e.g., 6.5). If not provided, uses current average rate for the state | |
| down_payment_amt | Yes | Down payment amount. If down_payment_type is "percent", enter percentage (e.g., 10 for 10%). If "amount", enter dollar amount (e.g., 80000) | |
| yearly_insurance | No | Yearly cost of homeowner's insurance in dollars | |
| down_payment_type | Yes | Type of down payment: "percent" or "amount" | percent |
| yearly_property_tax | No | Yearly cost of property tax in dollars |