Cuota de un préstamo
fin-loan-paymentCalcula la cuota fija de un préstamo amortizable (anualidad), total pagado e intereses. 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 fixed periodic payment for an amortizing loan: PMT = P·r / (1 − (1 + r)^−n), with total paid and total interest. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). Not for: computing the full amortization schedule (fin-loan-amortization). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | Number of payments (integer; required; min 1; max 1200). | |
| principal | Yes | Loan amount (number; required; min 0). | |
| annual_rate | Yes | Annual nominal rate, decimal (number; required; min 0; max 10). | |
| periods_per_year | No | Payments per year (integer; optional; default 12; min 1; max 365). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment | No | ||
| total_paid | No | ||
| total_interest | No |