Adjust for inflation
adjust_for_inflationUse this when the user asks a us inflation calculator question, for example what is $100 worth today, the value of money over time, or a dollar inflation calculator, buying power calculator or consumer price index calculator request for US dollars. It converts one US dollar amount between two periods with the published CPI-U index and returns the adjusted amount, both index values, the cumulative inflation, the average annual rate, and the buying-power change. It works for published periods from 1913-01 to the latest bundled month, year or YYYY-MM inputs, and amounts greater than zero up to one trillion dollars including fractional cents; only the output is rounded to cents. Do not use for other countries, for regional or core CPI, for forecasts, or for financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The to period as a year such as 1990, or a year and month such as 1990-06. 1913-01 or later and not after the latest published month. | |
| from | Yes | The from period as a year such as 1990, or a year and month such as 1990-06. 1913-01 or later and not after the latest published month. | |
| amount | Yes | The amount of US dollars to adjust, e.g. 100, 1234.56 or 1.005. Greater than zero and no more than 1,000,000,000,000; fractional cents are accepted and only the result is rounded to cents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| kind | Yes | ||
| years | Yes | ||
| amount | Yes | ||
| cpi_to | Yes | ||
| source | Yes | ||
| cpi_from | Yes | ||
| cpi_to_text | Yes | ||
| latest_month | Yes | ||
| cpi_from_text | Yes | ||
| cpi_to_period | Yes | ||
| cumulative_pct | Yes | ||
| adjusted_amount | Yes | ||
| cpi_from_period | Yes | ||
| average_annual_pct | Yes | ||
| adjusted_amount_text | Yes | ||
| buying_power_change_pct | Yes |