# Using +(days): to calculate a date from text

**URL:** <https://forum.bubble.io/t/using-days-to-calculate-a-date-from-text/171347>\
**Category:** Need help\
**Created:** [September 28, 2021, 4:37am UTC](https://forum.bubble.io/t/using-days-to-calculate-a-date-from-text/171347 "2021-09-28T04:37:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sydney22](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sydney22](https://forum.bubble.io/u/sydney22)\
**Post date:** [September 28, 2021, 4:37am UTC](https://forum.bubble.io/t/using-days-to-calculate-a-date-from-text/171347/1 "2021-09-28T04:37:03Z")

</div>

I’m trying to use +(days): to calculate dates from text. Let’s say I have a text “3 days ago”. I want to use an expression to represent 3 days ago from today, or 9/25/21.

 ![+(days)](https://us1.discourse-cdn.com/bubble/original/3X/4/f/4f0f151cf7d176b69d90a7729def81a45f2dbca9.png)

First I used Current date/time +(days): then did a search for my data type and field (e.g., “3 days ago”). Next I want to convert it to a number and multiply it by -1, but Bubble is not allowing it. Any suggestions?

---

<div class="post-metadata">

**Author:** ![makara](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/makara/32/104822_2.png) [@makara](https://forum.bubble.io/u/makara)\
**Post date:** [September 28, 2021, 4:54am UTC](https://forum.bubble.io/t/using-days-to-calculate-a-date-from-text/171347/2 "2021-09-28T04:54:28Z")

</div>

Try using “+(days): arbitrary text :converted to number”

---

<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:** [December 7, 2021, 4:37am UTC](https://forum.bubble.io/t/using-days-to-calculate-a-date-from-text/171347/4 "2021-12-07T04:37:27Z")

</div>

Closed on December 7, 2021, 4:37am UTC

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