# Add a delay with calculations

**URL:** <https://community.homey.app/t/add-a-delay-with-calculations/122130>\
**Category:** Questions & Help\
**Created:** [November 30, 2024, 10:51am UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130 "2024-11-30T10:51:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [November 30, 2024, 10:51am UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130/1 "2024-11-30T10:51:52Z")

</div>

I’m new to Homey. I try to modify the delay before an action but the delay should be based on a calculation. What is the way to do that (apparently, i can’t use math in the delay field)? Thank you for your help ti the newbie that i am 😃

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [November 30, 2024, 11:52am UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130/2 "2024-11-30T11:52:14Z")

</div>

I think the easiest way to do this would be to use a dedicated timer app such as [Chronograph App for Homey | Homey](https://homey.app/en-us/app/nl.fellownet.chronograph/Chronograph/)

You will use a then card to create a timer then a separate when card to trigger the rest of the flow once the timer expires. You can use a tag in the duration of the then card that creates the timer so you can base it on a calculation.

EDIT: if you’re not already using advanced flows, this will be far easier that way. Also, you’ll need a homey pro for this to work

---

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [December 2, 2024, 6:50pm UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130/3 "2024-12-02T18:50:38Z")

</div>

Seems interesting but i don’t know how to make calculation in a field. For example, let say that in the duration field of the chronograph card i would like to multiplies one of my temperature sensor by 40. How do i dot that?

---

<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:** [December 2, 2024, 8:05pm UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130/4 "2024-12-02T20:05:06Z")

</div>

This is a way to do calculations

 ![1000038360](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/4/947823172c10d92923533f19a05f24b0170b169c.jpeg)

But, it could result in numbers with digits, which are invalid as duration value.  
This can be avoided by rounding the calculation to zero digits, like this:

 ![1000038362](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/2/c2e19487e9eff6dd625df6615813eb4712d6f0ce.jpeg)

---

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [December 2, 2024, 8:29pm UTC](https://community.homey.app/t/add-a-delay-with-calculations/122130/5 "2024-12-02T20:29:39Z")

</div>

Thanks a lot, that will help me.
