Here’s how to use the Consumer Price Index to calculate the change in the real value of a dollar over time.