# Subtract date instead of add

**URL:** <https://forum.bubble.io/t/subtract-date-instead-of-add/17685>\
**Category:** Need help\
**Created:** [September 17, 2017, 3:02pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685 "2017-09-17T15:02:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.poolman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j.poolman/32/13227_2.png) [@j.poolman](https://forum.bubble.io/u/j.poolman)\
**Post date:** [September 17, 2017, 3:02pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/1 "2017-09-17T15:02:45Z")

</div>

Hi,

I cannot figure out how I tell the conditional that it has to subtracts the **_Current cell’s meeting’s key-registration-type’s finish agenda_** instead of add. I thought by placing a “-” in front of it it will work but no. Can you help me out?

![31](https://us1.discourse-cdn.com/bubble/original/3X/9/0/907d2168fd38ee34ffee138d20181430c61f5fbe.png)

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [September 17, 2017, 3:09pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/2 "2017-09-17T15:09:29Z")

</div>

I don’t think you can place a - in front of a dynamic value. Maybe you can add the value in a state (and using value-(value\*2) to make it into a negative number.

There might exist an easier solution.

---

<div class="post-metadata">

**Author:** ![j.poolman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j.poolman/32/13227_2.png) [@j.poolman](https://forum.bubble.io/u/j.poolman)\
**Post date:** [September 17, 2017, 3:12pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/3 "2017-09-17T15:12:20Z")

</div>

Hi petter, can you give me a hint in the direction? So far I used states for my menu’s and sub menu’s. But how do I use a state in this case?

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [September 17, 2017, 3:16pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/4 "2017-09-17T15:16:01Z")

</div>

It’s easier if I have a little more info, Your key-registration-type’s finish agenda, what data format is that. Is it a number?

---

<div class="post-metadata">

**Author:** ![j.poolman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j.poolman/32/13227_2.png) [@j.poolman](https://forum.bubble.io/u/j.poolman)\
**Post date:** [September 17, 2017, 3:21pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/5 "2017-09-17T15:21:00Z")

</div>

Yes the key-registration-type’s finish agenda is a number format. I placed a negative number in the field and then it’s working :-). Only thing is how do I force the number field to be a minus number? This field is autobinding. I guess I have to create a workflow instead?Is there a function to make a number negative?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 26, 2017, 3:02pm UTC](https://forum.bubble.io/t/subtract-date-instead-of-add/17685/6 "2017-11-26T15:02:45Z")

</div>

Closed on November 26, 2017, 3:02pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
