It is sensible that cost need to be calculated for every kWh (not for every kW), since cost is often a cumulative issue – the more energy you use, the more it costs.Consider it: Should you have 30-moment interval knowledge with readings in kWh, however, you take care of those readings as Should they be in kW (average kW, strictly speaking), every