Changing The Way I Calculate Solar Value

Over the last few years, I've put quite a bit of work into our solar generation stats, tracking generated electricity value and calculating when the install will break even. The calculations marry each kWh generated with the Octopus Agile import cost at the time, using an additional calculation to account for the lost export value of anything charged into the battery. The logic used is quite…