Kinda wonky and slightly hard for me to follow because I'm not, but if you're curious about this sort of thing, Dave Roberts is a good follow on all things related to green energy and such and this is an interesting read/listen https://www.volts.wtf/p/rooftop-solar-and-home-batteries