Adjust an amount for inflation between two years
inflation_adjustConvert a nominal amount between years using official CPI data. Get the inflation-adjusted value with exact index values, formula, and citation for any country.
Instructions
Convert a nominal amount between years using official CPI: 'what is 100 in 1995 money worth in today's money?' Works for any country with CPI data (default USA). Returns the adjusted amount, the exact index values and formula used, and the citation. Annual-average precision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| country | No | Default 'USA'. | |
| to_year | Yes | ||
| from_year | Yes |