calculate_with_lump_sum
Calculate a loan amortization schedule after a one-time lump sum payment, showing how an extra payment at a chosen month lowers principal and shortens the loan term.
Instructions
Calculate the amortization schedule after a one-time lump sum payment.
The lump sum is applied at the specified month, reducing the outstanding balance. The remaining schedule uses the same monthly payment against the lower principal, resulting in a shorter loan term.
Args: principal: Loan amount in dollars. annual_interest_rate: Annual interest rate as a percentage. loan_term_years: Original loan term in years. monthly_payment: Regular monthly payment amount. lump_sum_amount: One-time extra payment to apply. month_to_apply: Month (1-based) when the lump sum is applied.
Returns: JSON object with the updated amortization schedule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | ||
| month_to_apply | Yes | ||
| loan_term_years | Yes | ||
| lump_sum_amount | Yes | ||
| monthly_payment | Yes | ||
| annual_interest_rate | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |