How Inflation Impacts the S&P 500 Performance