# How to add time to logic number

**URL:** <https://community.homey.app/t/how-to-add-time-to-logic-number/40443>\
**Category:** Questions & Help\
**Created:** [January 4, 2021, 2:39pm UTC](https://community.homey.app/t/how-to-add-time-to-logic-number/40443 "2021-01-04T14:39:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 4, 2021, 2:39pm UTC](https://community.homey.app/t/how-to-add-time-to-logic-number/40443/1 "2021-01-04T14:39:25Z")

</div>

Hi.

I have some flows using the countdown app to inform me that the garage door is still open.  
The flow sends me a push message when the countdown time has run out (900), then restarts the countdown. So I basically get a push message every 15 minutes, until the garage door is closed.

Now I want to increase the time between messages.

My thought would be to have two logic values.  
NrReminders = 1  
CalculatedTime=900

Now I want the flow to increase the NrReminders by 1, and CalculatedTime = NrReminders\*900.  
This would make the time between push messages to be increased by 15 minutes after every push message. (To decrease the number of push message when the garage door is open for a valid reason)

I can’t figure out how to calculate “NrReminders\*900” (I do know how to increase NrReminders).

Then finally when the garage door is closed again, I can ‘reset’ NrReminders and CalculatedTime.

If this is explained somewhere else, please forgive me, but I could not find anything relevant.

many regards,  
Twan Veugelers

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [January 4, 2021, 2:49pm UTC](https://community.homey.app/t/how-to-add-time-to-logic-number/40443/2 "2021-01-04T14:49:40Z")

</div>

Have a look here, how to calculate:  
[Why does this not work? (logic to calculate an average and save the result)](https://community.homey.app/t/why-does-this-not-work-logic-to-calculate-an-average-and-save-the-result/37600)

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 4, 2021, 3:10pm UTC](https://community.homey.app/t/how-to-add-time-to-logic-number/40443/3 "2021-01-04T15:10:21Z")

</div>

I’m completely overthinking things.

If I can increase the NrReminders by 1 I can much better have 1 logicvalue, CalculatedTime, and Increase that by 900. Just as easy.

So my issue is solved.  
I will read the suggested topic by @JPe4619.
