I have an object named electricity meter with two fields:
Time (datetime) and Value (number).
Every 15 minutes the total amount of my electrcity meter is added to my object like this:
2018-10-20 10:00 105
2018-10-20 10.15 111
2018-10-20 10.30 120
Question: How can I calculate the consumption per every new record?
In my example the first consumption result would need to be 6 (111-105) and the second consumption result would Need to be 9 (120-111).
Im thankful for every suggestion that could help me to solve this.