Tasa de crecimiento anual compuesta
fin-cagrCalcula la tasa de crecimiento anual compuesta (CAGR) y crecimiento total. Cuándo: un cálculo de dinero, impuestos o matemática financiera tiene que ser exacto y reproducible (redondeo, centavos, tasas). No para: calcular el retorno sobre la inversión y su tasa anualizada (fin-roi). 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 compound annual growth rate CAGR = (end / start)^(1 / years) − 1 and the total growth. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). Not for: computing the return on investment and its annualized rate (fin-roi). 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 |
|---|---|---|---|
| years | Yes | Years (number; required; > 0; max 1000). | |
| end_value | Yes | End value (number; required; min 0). | |
| start_value | Yes | Start value (number; required; > 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cagr | No | ||
| cagr_percent | No | ||
| total_growth_percent | No |