How inflation affects the value of goods over time