While I think that it is never easy to forecast a future cost of capital, in today's markets, and geopolitics, I think trying to define a future cost of capital is unclear to put it mildly. As a proxy, I would suggest at least using someone's own existing rate of return, post taxes, on their own capital. Forecasting what sort of costs your local utility might impose is, in my opinion, a fools errand.What is the cost of capital you are using? The money you are spending on the solar+ESS could be earning money in a money market account, or investment in the stock market. So there is an opportunity cost that has to be considered in the calcs - a lot of people use 7% for these sorts of calcs, but with interest rates going up that may be on the low side.
I also think that pricing other aspects of solar/PV/generators in terms of resiliency, the value of being able to do "X", or "Y", the ability to stay in one's house, or supporting medical needs are much harder to price.
I have neighbors who had to move to hotels on short notice whenever we had power issues. A generator was an easy investment for them.
Just my $0.02...
BG