calculate_payment
Amortizing and interest-only payment math for a commercial loan: monthly and annual debt service, total interest over the term, and the balloon balance at maturity when the term is shorter than the amortization (the normal CRE case — a 10-year term on a 30-year schedule).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | DECIMAL (0.0725 = 7.25%) | |
| termYears | No | Balloon at this point | |
| loanAmount | Yes | ||
| interestOnly | No | ||
| amortizationYears | No |