this app calculates the expected return on equity of S&P 500 companies using a linear regression going back the amount of months you would like. For the risk free rate I used the 10 year treasury.
Ticker:
Months: