# Logic calculate a numeric variable

**URL:** <https://community.homey.app/t/logic-calculate-a-numeric-variable/7497>\
**Category:** Questions & Help\
**Created:** [January 20, 2019, 2:12pm UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497 "2019-01-20T14:12:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [January 20, 2019, 2:12pm UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497/1 "2019-01-20T14:12:11Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/0e9eb5808a0c87eb273001c5f4828fe9f6e8fcbf.jpeg)

I am trying to increase a number variable everytime the door sensor is triggered. Does this flow work, or should i calculate another way?

---

<div class="post-metadata">

**Author:** ![Leonard\_Thierry](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leonard_thierry/32/3000_2.png) [@Leonard\_Thierry](https://community.homey.app/u/Leonard_Thierry)\
**Post date:** [March 29, 2019, 11:09am UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497/2 "2019-03-29T11:09:01Z")

</div>

Hi Marcel, I have the same issue. Has your question been answered in any way?  
Using the app Better Logic, it could be done by using variable. I try to minimize the number of installed apps in Homey. I hoped we would not need the Better Logic app anymore, because Homey V2 has variables an calculations built-in.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [March 29, 2019, 1:03pm UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497/3 "2019-03-29T13:03:30Z")

</div>

This flow does work very well.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 29, 2019, 3:28pm UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497/4 "2019-03-29T15:28:40Z")

</div>

Can u be more precise!  
“Doesn’t work very well “ is not something we can use to answer.  
In Better Logic there is a increment card like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d2d950d949a9ea313c21a12fe714b58e411bbf03.jpeg)

---

<div class="post-metadata">

**Author:** ![RayCokes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raycokes/32/12452_2.png) [@RayCokes](https://community.homey.app/u/RayCokes)\
**Post date:** [July 19, 2020, 3:41pm UTC](https://community.homey.app/t/logic-calculate-a-numeric-variable/7497/5 "2020-07-19T15:41:23Z")

</div>

You can check the increased variables in the logics through options. I am testing similar for reducing notifications
