calculate_with_prepayment
Compute EMI outcomes when regular prepayments reduce principal, revealing shorter tenure and interest savings.
Instructions
Calculate EMI outcomes when regular prepayments reduce the outstanding principal.
Args: principal: Loan amount. interestRate: Annual interest rate expressed in percent (e.g. 9.5). tenure: Total tenure in months. prepayment_amount: Amount paid on each prepayment event. prepayment_frequency: Frequency descriptor (for example, "monthly" or "quarterly"). prepayment_start_month: Month number when prepayment begins (1-indexed). calculation_method: Backend calculation strategy (for example, "reducing").
Returns: Backend JSON payload capturing EMI adjustments, duration changes, and savings or an error structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenure | Yes | ||
| principal | Yes | ||
| interestRate | Yes | ||
| prepayment_amount | Yes | ||
| calculation_method | No | reducing | |
| prepayment_frequency | Yes | ||
| prepayment_start_month | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |