How to calculate daily and running totals

check this

if you need something more advance with Energy Management: