Maxpain calculations for sp500 and nasdaq100 list