# How do I calculate diff between two consecutive payloads

**URL:** https://discourse.nodered.org/t/how-do-i-calculate-diff-between-two-consecutive-payloads/6756
**Category:** General
**Created:** [13 January 2019 19:40 UTC](https://discourse.nodered.org/t/how-do-i-calculate-diff-between-two-consecutive-payloads/6756 "2019-01-13T19:40:25Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Energycharges](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@Energycharges](https://discourse.nodered.org/u/Energycharges)
#### Post date: [26 September 2020 09:40 UTC](https://discourse.nodered.org/t/how-do-i-calculate-diff-between-two-consecutive-payloads/6756/13 "2020-09-26T09:40:14Z")

</div>

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](https://discourse.nodered.org/t/how-to-calculate-the-difference-in-kwh-values-received-every-5-min-from-modbus-data-and-save-it-as-a-new-values-in-csv/33274/7)]

Please guide me

Appreciate , your effort in notifying the issue  
thank you !

Energycharges 😃 😃

---

_[View the full topic](https://discourse.nodered.org/t/how-do-i-calculate-diff-between-two-consecutive-payloads/6756)._
