I've done the detailed math involved in comparing a solar install over a 30 year timeframe compared to investing in the S&P, and you still come out ahead over that timeframe, and depending on the cost of solar and electricity where you live, you can come out significantly ahead.