Hi Toby! You should check out this post on Analog Totalizing - Analog Totalizing 101: calculating watt-hours example