# Calculate time variable

**URL:** <https://community.homey.app/t/calculate-time-variable/87604>\
**Category:** Questions & Help\
**Created:** [August 20, 2023, 9:20pm UTC](https://community.homey.app/t/calculate-time-variable/87604 "2023-08-20T21:20:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SM24](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sm24/32/78863_2.png) [@SM24](https://community.homey.app/u/SM24)\
**Post date:** [August 20, 2023, 9:20pm UTC](https://community.homey.app/t/calculate-time-variable/87604/1 "2023-08-20T21:20:22Z")

</div>

Hello dear community

I have another question for you - you are always such a wonderful help - so thank you very much 🙂

in homey flows you have access to the current time as a system variable. I would like to have a push notification sent in which the current time is added by e.g. 90 minutes (so if the flow is triggered at 2 p.m. (german time 14:00) , for example, the notification should display 3:30 p.m. (german time 15:30), for example. It might get tricky here at 11 p.m. (23:00) , for example. This would be the result then 12:30 a.m. (00:30)

how can i calculate the variables? So for example: “Time\_Notification” = “Time” (system variable") + 01:30 or something like that - by logic or by homeyscript? thanks for further help - screenshots are always helpful otherwise 😉

thank you very much

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 20, 2023, 9:59pm UTC](https://community.homey.app/t/calculate-time-variable/87604/2 "2023-08-20T21:59:48Z")

</div>

Maybe this can be of help

> **[Action Scheduler | Homey](https://homey.app/en-gb/app/fi.oh2th.alarmutils/Action-Scheduler/)**
>
> Dynamic flow scheduling

and / or

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/74):
>
> Run NN minutes ahead of a given local clock time. After some discussion in [[APP][Pro] Better Logic Library - For Users - #23 by OH2TH](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/23) we got this flow working for the original problem. Apps used: [Better Logic Library](https://homey.app/a/net.i-dev.betterlogic) Builtin: Date & Time Builtin: Logic Builtin: Timeline Thanks for the help, still need to fine tune that. [tef:FLOWS:"H4sIAAAAAAACA9VY227bRhD9FYINYDvQGnvjXtS+tE2AFEj70OQtMYS9zFpEaNKlKDtG4n/vkKJsSVUSpkACBHqQSFGzZ86ZPTOrD/lNPv+QJ2+SjokS7yglkkZB…

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [August 20, 2023, 10:33pm UTC](https://community.homey.app/t/calculate-time-variable/87604/3 "2023-08-20T22:33:35Z")

</div>

Better Logic Library is a really powerful tool for stuff like this.

> **[Better Logic Library](https://homey.app/en-us/app/net.i-dev.betterlogic/Better-Logic-Library/)**
>
> Just some better logic, variable and library management

---

<div class="post-metadata">

**Author:** ![SM24](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sm24/32/78863_2.png) [@SM24](https://community.homey.app/u/SM24)\
**Post date:** [August 21, 2023, 11:49am UTC](https://community.homey.app/t/calculate-time-variable/87604/4 "2023-08-21T11:49:13Z")

</div>

thank you for your information about it.  
I installed the app - but now I need the code for the calculation. I also put it in the app thread. can you maybe help me here?

[[APP][Pro] Better Logic Library - For Users (Homey Community)](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/76)

Thank you 🙂
