calculate_loan_payment
Calculate fixed monthly payment for an amortizing loan given principal, annual interest rate, and term in months. Returns monthly payment, total cost, and total interest.
Instructions
Calculate the fixed monthly payment of a generic amortizing loan when the term is expressed in months. Inputs: principal (amount borrowed), annual_rate (annual interest rate in percent), months (term in months). Returns monthly payment, total cost and total interest. Read-only and deterministic. Prefer calculate_mortgage if you want a term in years or an amortization schedule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | Yes | Loan duration in months | |
| principal | Yes | Loan amount | |
| annual_rate | Yes | Annual interest rate in % |