# Durations and recurring tasks

**URL:** <https://connect.superhuman.com/t/durations-and-recurring-tasks/12895>\
**Category:** Ask the Community\
**Created:** [December 22, 2019, 12:20am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895 "2019-12-22T00:20:58Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 22, 2019, 12:20am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/1 "2019-12-22T00:20:58Z")

</div>

I’m new, and trying to learn, but learning involves getting my tasks list up and running on CODA so I can make it better.

One of the basics in my current task list (in Excel, with lots of VBA) is updating the start date of a recurring task when the “completed” column is double-clicked. The recurrence patterns can be pretty complex (“MONTHS 1” = every month, “SAT” = every Saturday, “LAST SAT” = LAST SATURDAY of the month, “DAYS 3” = every 3 days, etc.)

I thought I could use durations in my recurrence patterns, in Coda, but they won’t do what I need for the recurrence patterns that aren’t outright “x many months/days/weeks.” Even if they could, it appears that you can ONLY have durations in days, not mix days with weeks and months, etc. - am I right?

Any suggestions for how to click a button and move the startdate field of a row into the future based on weird patterns like this in the recurrence column?

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 22, 2019, 1:52am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/2 "2019-12-22T01:52:55Z")

</div>

I’m making a little progress. I’ll have set values in my recurrence pattern column (DAYS 2, WEEKS 3, MONTHS 6, YEARS 1, etc.). I’ll have a button that updates thisrow.specificColumn to a value of [start date] + last(split(recurrence," ")).

But is there “date math” in CODA that goes beyond just adding days? Is there a function like Excel’s DateAdd function?

---

<div class="post-metadata">

**Author:** ![Federico\_Stefanato](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/federico_stefanato/32/10092_2.png) [@Federico\_Stefanato](https://connect.superhuman.com/u/Federico_Stefanato)\
**Post date:** [December 22, 2019, 11:54am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/3 "2019-12-22T11:54:24Z")

</div>

Hi @Cara_Madra,  
there is also `RelativeDate(`) (see [Reference](https://coda.io/formulas#RelativeDate)) where you can add/subtract months from a reference date.

If you could share your example, maybe it would be easier to have an idea of your context.

Cheers.

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 22, 2019, 5:16pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/4 "2019-12-22T17:16:52Z")

</div>

Thanks. It’s kind of so intricate that it’s embarrassing, but I’ll try to figure out how to explain what I’m doing in Excel. I’m thinking I may have to have a separate “reference” table that holds formulas (or variables for formulas) to use based on the recurrence pattern I’ve got for each task.

I’ll create a new topic for explaining what I’m trying to accomplish.

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 22, 2019, 6:01pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/5 "2019-12-22T18:01:38Z")

</div>

Actually, I’ll just put it here. It’s long and will be seen as “silly” by some, but it’s what I need to keep my life straight. The most important columns right now, as I try to move to Coda from Excel, are the start dates and recurrence, and how I automate that in Coda.

The VBA code that I have behind my double-clicking the columns is pretty messy and intricate and I can change it anytime I figure out that something’s not right, so that flexibility is pretty nice. It’s the ability to enter pretty much any recurrence that I need that I really like about this.

What I DON’T like about this is that the master list is not at my finger tips when I’m mobile. So I currently have a Toodledo account, and I use Excel to pick the tasks I want to work on this week. I paste in my tasks to Toodledo, then use the 2Do iOS app to access them on my phone.

I’d much rather do this **all** in Coda!

 ![image](https://global.discourse-cdn.com/coda1/original/2X/0/02091bc008b8c945fd89035fc6f5238c5b69ec29.png)

---

<div class="post-metadata">

**Author:** ![Federico\_Stefanato](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/federico_stefanato/32/10092_2.png) [@Federico\_Stefanato](https://connect.superhuman.com/u/Federico_Stefanato)\
**Post date:** [December 22, 2019, 7:22pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/6 "2019-12-22T19:22:14Z")

</div>

Hi @Cara_Madra,  
I don’t think it’s _silly_… You need a task management like - perhaps - 98% of us is building!

I believe that through Coda might me much simpler (and more fun!) than with VBA. 😉

I followed your list: let me know if it sounds familiar:

https://coda.io/embed/LYMVmXL5DK/_suy_E?viewMode=embedplay

I still have to better understand and think how to implement the **Repeat** action: if you already have something, try to post it and I’ll have a look.

I used table for the lookups (instead of a simple list) because it’s easier to have decouple rules and _ad-hoc_ metrics as well as specific enhancements. Feel free to simplify them.

Please, do let me know if it’s in the right direction.

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 23, 2019, 12:55am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/7 "2019-12-23T00:55:56Z")

</div>

Thanks for the effort. I’m not sure I understand the purpose of the “Advance to,” “Back to” and “Move to today” buttons - I would do that all (with the exception of “back to,” which I wouldn’t need) through my repeats, I think. I actually planned to have my Master List with a view to a “hot list” (higher urgency/priority tasks that have start dates up to today) where I would “star” the tasks that I wanted to focus on, and those would show up in a view for “today.”

The RECURRING automation is my biggest need. I think I can handle the goals, priorities, urgencies via select lists.

I started to try to write what I was doing with the repeats, and what it really comes down to is that I need a way

1. to say if the “repeat from” date should be the start date or TODAY or YESTERDAY (if I forget to complete what I did yesterday)
2. to indicate the interval type (days, months, weeks, years)
3. to indicate the interval  
That’s why Excel’s dateadd works so well - you can do that with a single function (the interval type and interval, anyway, and I handled the rest in code).

**Does Coda consider requests for new functions?**

My other REPEAT needs (repeat every last friday, repeat every monday and thursday) – well, I’ll have to figure those out. In Excel, I wrote fairly intricate VBA code to figure the right next date out. I could probably work that off a calendar, for now.

Again - thanks. My tasks list has become a very personalized thing, for me.

---

<div class="post-metadata">

**Author:** ![Jean\_Pierre\_Traets](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jean_pierre_traets/32/16275_2.png) [@Jean\_Pierre\_Traets](https://connect.superhuman.com/u/Jean_Pierre_Traets)\
**Post date:** [December 23, 2019, 8:29am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/8 "2019-12-23T08:29:02Z")

</div>

Dear @Federico_Stefanato,

Great detailed explanation from where many users will benefit, having also in mind the import option of Gdocs.

---

<div class="post-metadata">

**Author:** ![Federico\_Stefanato](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/federico_stefanato/32/10092_2.png) [@Federico\_Stefanato](https://connect.superhuman.com/u/Federico_Stefanato)\
**Post date:** [December 23, 2019, 2:45pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/9 "2019-12-23T14:45:16Z")

</div>

Thank you, @Jean_Pierre_Traets!

Although I believe this is not what @Cara_Madra actually wanted 😬

Now I’ll try do dig a bit more…

---

<div class="post-metadata">

**Author:** ![Federico\_Stefanato](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/federico_stefanato/32/10092_2.png) [@Federico\_Stefanato](https://connect.superhuman.com/u/Federico_Stefanato)\
**Post date:** [December 23, 2019, 2:58pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/10 "2019-12-23T14:58:47Z")

</div>

Hi, @Cara_Madra,  
I guess we are thinking of different ways of managing tasks.

I usually try to build up the overall design in order to minimise the actions from the user’s perspective.  
Meaning that all the potential actions should be pushed by explicit buttons (user- or automation- triggered). This also significantly increase the efficiency from a mobile perspective.

- Create new task
- Prioritise for today
- Start Working
- Complete Task
- Remove from the list

Also, I try to keep in mind all the metrics I want to collect (transition times, story points, estimation discrepancies, etc).

However, I’m still struggling to understand your “recurring” automation process.

I have the feeling you are thinking of your _solution as a requirement_ and not vice-versa (sometimes it’s quite subtle and sneaky…).

I’d be happy to help you but I need to get a better view of it: what if instead of trying to explain the overall principle, you just tell your ideal task lifecycle; from its creation to the actions you wish to perform?

Thank you!

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 23, 2019, 11:42pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/11 "2019-12-23T23:42:32Z")

</div>

Is there any way to upload video to this forum? I have a screen capture that shows exactly what I do - might make it easier to understand than a narrative.

---

<div class="post-metadata">

**Author:** ![Ben\_Lee](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ben_lee/32/49867_2.png) [@Ben\_Lee](https://connect.superhuman.com/u/Ben_Lee)\
**Post date:** [December 23, 2019, 11:56pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/12 "2019-12-23T23:56:38Z")

</div>

YouTube or Loom link would work, or a GIF.  
I don’t think we allow full video files. Those tend to take up quite a bit of space pretty quick.

---

<div class="post-metadata">

**Author:** ![Cara\_Madra](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/cara_madra/32/12005_2.png) [@Cara\_Madra](https://connect.superhuman.com/u/Cara_Madra)\
**Post date:** [December 25, 2019, 8:26pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/13 "2019-12-25T20:26:13Z")

</div>

I had something to upload but don’t really want to deal with those external sites and don’t (yet) know how to turn my video into a GIF.

In the meantime, I kept playing with this, and did find a way to make a “Done” button advance my start date in the case of simple recurrence patterns. However, many of my patterns are **not** simple, and I just don’t see Coda getting me where I need to be as quickly as I need to be there, unfortunately, for this project.

I plan to keep trying to use it for more simple things, and keeping up with any features that are added, in the hopes that I can get away from having to reference this Excel workbook that I can’t really access online (because of my VBA).

Thanks to everyone who tried to help …

---

<div class="post-metadata">

**Author:** ![Matthew\_Salegumba](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Matthew\_Salegumba](https://connect.superhuman.com/u/Matthew_Salegumba)\
**Post date:** [June 2, 2022, 2:32pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/14 "2022-06-02T14:32:53Z")

</div>

Hello!

Can you please help me create a formula that will automatically add 6 months to the most recent date that is encoded in a row? Thank you so much!

 ![image](https://global.discourse-cdn.com/coda1/original/3X/c/a/ca00e56901abb651c81a2827fd2f86105306c3fe.png)

---

<div class="post-metadata">

**Author:** ![Terry\_Stagg](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/terry_stagg/32/35217_2.png) [@Terry\_Stagg](https://connect.superhuman.com/u/Terry_Stagg)\
**Post date:** [June 2, 2022, 2:52pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/15 "2022-06-02T14:52:06Z")

</div>

@Matthew_Salegumba You can use the SwitchIf formula and do start date and then multiples for the 2nd 3rd and so on. I use this formula for recurring tasks that are done on daily, weekly, monthly, quarterly etc that is

SwitchIf(thisRow.Recurring=“Monthly”,thisRow.[Due Date]+Days(30),thisRow.Recurring=“Quarterly”,thisRow.[Due Date]+Days(90),thisRow.Recurring=“Yearly”,thisRow.[Due Date]+Days(365),thisRow.Recurring=“Daily”,thisRow.[Due Date]+Days(1))

You could easily modify this for your table.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Scott\_Collier-Weir](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/scott_collier-weir/32/29677_2.png) [@Scott\_Collier-Weir](https://connect.superhuman.com/u/Scott_Collier-Weir)\
**Post date:** [June 2, 2022, 6:44pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/16 "2022-06-02T18:44:51Z")

</div>

Hey there!  
@Terry_Stagg had some great ideas! But I’d suggest something a little different

If all you are wanting to do is add 6 months to a date already encoded in a row, you can use this formula:

 ![image](https://global.discourse-cdn.com/coda1/original/3X/0/9/09725fb631fd5091e4df79f5306f6a5cfe053996.png)

`RelativeDate()` is more secure than `Days(30)` as a month does not always have 30 days in it.

---

<div class="post-metadata">

**Author:** ![Terry\_Stagg](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/terry_stagg/32/35217_2.png) [@Terry\_Stagg](https://connect.superhuman.com/u/Terry_Stagg)\
**Post date:** [June 2, 2022, 11:59pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/17 "2022-06-02T23:59:28Z")

</div>

And that’s why I always hope @Scott_Collier-Weir reads my posts so I can learn better ways too!! (As I start changing formulas in my docs 😂)

---

<div class="post-metadata">

**Author:** ![Matthew\_Salegumba](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Matthew\_Salegumba](https://connect.superhuman.com/u/Matthew_Salegumba)\
**Post date:** [June 3, 2022, 2:00am UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/18 "2022-06-03T02:00:23Z")

</div>

> [@Terry\_Stagg](#):
>
> witchIf(thisRow.Recurring=“Monthly”,thisRow.[Due Date]+Days(30),thisRow.Recurring=“Quarterly”,thisRow.[Due Date]+Days(90),thisRow.Recurring=“Yearly”,thisRow.[Due Date]+Days(365),thisRow.Recurring=“Daily”,thisRow.[Due Date]+Days(1))

Wow! Thank you so much, guys!

---

<div class="post-metadata">

**Author:** ![louca.developer](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/louca.developer/32/22685_2.png) [@louca.developer](https://connect.superhuman.com/u/louca.developer)\
**Post date:** [July 4, 2022, 8:08pm UTC](https://connect.superhuman.com/t/durations-and-recurring-tasks/12895/19 "2022-07-04T20:08:28Z")

</div>

See this pack: [Recurrence Rule Pack, extend Coda with Recurrence... | Coda](https://coda.io/packs/recurrence-rule-12797) which automates most of this process with some more powerful features.
