Abono extraordinario a un crédito
fin-loan-prepaymentCalcula el efecto de un abono extraordinario a capital en un crédito de cuota fija tras cierto número de cuotas: el saldo y, para reducir plazo o reducir cuota, la nueva cuota, los periodos, los intereses y el ahorro. Cuándo: un cálculo de dinero, impuestos o matemática financiera tiene que ser exacto y reproducible (redondeo, centavos, tasas). No para: calcular la tabla de amortización completa (fin-loan-amortization). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Computes the effect of an extra principal payment on a fixed-payment loan after a number of payments: the balance, and for both options (keep the payment and shorten the term, or keep the term and lower the payment) the new payment, periods, interest and interest saved. [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | Total number of payments of the loan (integer; required; min 1; max 1200). | |
| principal | Yes | Loan amount (number; required; > 0; max 1000000000000). | |
| rate_type | No | How annual_rate is quoted: nominal (divided by periods_per_year) or effective_annual (EA, as in Colombia) (optional; one of: nominal, effective_annual; default "nominal"). | nominal |
| prepayment | Yes | Extra payment applied to principal (number; required; > 0; max 1000000000000). | |
| annual_rate | Yes | Annual rate, decimal (0.18 = 18 %) (number; required; min 0; max 10). | |
| payments_made | Yes | Payments already made before the prepayment (integer; required; min 0; max 1199). | |
| periods_per_year | No | Payments per year (integer; optional; default 12; min 1; max 365). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment | No | ||
| paid_off | No | ||
| reduce_term | No | ||
| periodic_rate | No | ||
| reduce_payment | No | ||
| excess_returned | No | ||
| remaining_periods | No | ||
| prepayment_applied | No | ||
| balance_after_prepayment | No | ||
| balance_before_prepayment | No | ||
| interest_remaining_without_prepayment | No |