How do I calculate diff between two consecutive payloads

Hi all

Can you please guide me with the flow , Im having a same kind of issue .

I have raised issue in [How to calculate the difference in KWH values received every 5 min from modbus data and save it as a new values in csv]

Please guide me

Appreciate , your effort in notifying the issue
thank you !

Energycharges :smiley: :smiley: