Impact of inflation on investments