CAGR and inflation adjustment
cagr_inflationCalculate Compound Annual Growth Rate (CAGR), real inflation-adjusted purchasing power growth (Fisher equation), and exact investment doubling time (Rule of 72 exact logarithmic solution).
Behavior: Deterministic, idempotent calculation with zero external side effects. Computes Nominal CAGR = (finalValue / initialValue)^(1 / periodsYears) - 1. Computes Real CAGR using the exact Fisher relation: (1 + Nominal) / (1 + Inflation) - 1. Computes exact doubling horizon = ln(2) / ln(1 + Nominal). Returns nominal CAGR %, real CAGR %, total nominal gain, total real purchasing power gain, and doubling years.
Usage Guidelines: Use for evaluating historical investment portfolio track records, business revenue growth metrics, and inflation drag analysis. Do not use for forward-looking recurring monthly investment projections; use compound_wealth or sip_investment instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | HISTORICAL_CAGR: growth from initialValue to finalValue. PROJECTION: grow initialValue at expected_annual_return_rate. | |
| as_of_date | Yes | Civil date YYYY-MM-DD. Selects the rule pack in force on that date. Required: the engine will not assume a date. | |
| finalValue | Yes | Ending value (HISTORICAL_CAGR), as a string with exactly 2 decimal places. | |
| initialValue | Yes | Starting value, as a string with exactly 2 decimal places. | |
| periodsYears | Yes | Period in years, from 0.0833 (1 month) to 50. | |
| inflationRatePercent | No | Annualized inflation rate percentage over the period (e.g. 2.5 for 2.5%). | |
| expected_annual_return_rate | No | Expected annual return in percent, as a decimal string. Required for PROJECTION mode. |