# Script about calculate the cumulative downtime

**URL:** <https://forum.inductiveautomation.com/t/script-about-calculate-the-cumulative-downtime/82940>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 10, 2023, 1:34am UTC](https://forum.inductiveautomation.com/t/script-about-calculate-the-cumulative-downtime/82940 "2023-12-10T01:34:03Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 11, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/script-about-calculate-the-cumulative-downtime/82940/25 "2023-12-11T14:22:54Z")

</div>

![Gateway event](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a7490c3fe8117e0ae9a8928d6e94c12a5d90d80.png)

[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts)

> **[Gateway vs. Client Event Scripts Video at Inductive University](https://inductiveuniversity.com/video/gateway-vs-client-event-scripts/8.1)**
>
> Learn the difference between Gateway and Client event scripts to understand when to use one vs the other.

Have the gateway event update a memory tag.  
Bind the label `props.text` to the memory tag.

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-about-calculate-the-cumulative-downtime/82940)._
