Calculate mortgage payment
calculate_mortgage_paymentMonthly principal and interest and total interest for a fixed-rate loan. Without a rate it uses this week's Freddie Mac average for 30-year or 15-year terms, and compares it with the average a year earlier. Taxes, insurance and PMI are not included.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Annual rate in percent. Default: the latest Freddie Mac average for the term. | |
| term_years | No | Term in years. Default 30. | |
| loan_amount | Yes | Loan amount in dollars, for example 400000. | |
| compare_rate | No | A second rate to compare. Default: the Freddie Mac average a year earlier. |