# Overdue task formula

**URL:** <https://community.fibery.io/t/overdue-task-formula/4048>\
**Category:** Get Help\
**Created:** [February 23, 2023, 6:23pm UTC](https://community.fibery.io/t/overdue-task-formula/4048 "2023-02-23T18:23:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Sleman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/a_sleman/32/6279_2.png) [@A\_Sleman](https://community.fibery.io/u/A_Sleman)\
**Post date:** [February 23, 2023, 6:23pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/1 "2023-02-23T18:23:51Z")

</div>

Hi !  
I have been trying for a while to create an overdue date formula where the state is true if the end date of a date property is before now.  
If someone can help me i would be grateful

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 23, 2023, 6:53pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/2 "2023-02-23T18:53:40Z")

</div>

`EndDate < Today()`

Or if you mean the end date of a date range

`Date.End() < Today()`

Note: you can’t use `Now()` (a value with current date **and** time) in formula fields, but you can in automations

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 23, 2023, 6:55pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/3 "2023-02-23T18:55:02Z")

</div>

[https://the.fibery.io/@public/User\_Guide/Guide/Date-field-93](https://the.fibery.io/@public/User_Guide/Guide/Date-field-93)  
[https://the.fibery.io/@public/User\_Guide/Guide/Date-Ranges-in-formulas-42](https://the.fibery.io/@public/User_Guide/Guide/Date-Ranges-in-formulas-42)

---

<div class="post-metadata">

**Author:** ![A\_Sleman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/a_sleman/32/6279_2.png) [@A\_Sleman](https://community.fibery.io/u/A_Sleman)\
**Post date:** [February 23, 2023, 7:05pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/4 "2023-02-23T19:05:06Z")

</div>

> [@Chr1sG](#):
>
> \< Today()

I i would like to clarify, that I am trying to create a view for undone tasks that their end date have passed the current time by seconds or minutes (not by days),  
and i am using 1 date field with en date functionality.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 23, 2023, 9:29pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/5 "2023-02-23T21:29:51Z")

</div>

The best you can do in that case is to use an automation that runs every hour and checks which tasks have become overdue and mark a checkbox field accordingly.  
It’s not possible to get resolution better than every hour.

---

<div class="post-metadata">

**Author:** ![A\_Sleman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/a_sleman/32/6279_2.png) [@A\_Sleman](https://community.fibery.io/u/A_Sleman)\
**Post date:** [February 24, 2023, 8:19am UTC](https://community.fibery.io/t/overdue-task-formula/4048/6 "2023-02-24T08:19:16Z")

</div>

Hi thank you for you advice  
but i can’t seem to figure out how to create the automation formula for it, if you can help help me through it or point me in the direction to learn automation formulas, i would be grateful.  
Just out of curiosity, why is the now() function only available in the automation formulas, and why is hourly rate the best resolution?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 24, 2023, 11:53am UTC](https://community.fibery.io/t/overdue-task-formula/4048/7 "2023-02-24T11:53:00Z")

</div>

Here’s what an automation might look like:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/aab0e3f0945c16e11dcba8f95e5de44aedc24884.png)

Formulas for automations are basically the same as formulas for fields, except that in an automation formula

- you refer to the entity that triggered the automation, using `[Step 1 Xxx]` (as seen above)
- you can use the `Now()` function
- you can perform ‘entity queries’ - they allow you to query any database in the workspace, e.g. `Tasks.Filter(State.Name = "Done")`

> [@A\_Sleman](#):
>
> why is the now() function only available in the automation formulas, and why is hourly rate the best resolution?

Automations and formulas run on the Fibery backend.  
If a formula field included `Now()` (which changes every second) then the formula would need recalculating every second. This would overload the service.  
Similarly, it would be unmanageable to have automations that re-ran every second. It was decided that allowing every hour would be acceptable.

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [February 24, 2023, 12:52pm UTC](https://community.fibery.io/t/overdue-task-formula/4048/8 "2023-02-24T12:52:59Z")

</div>

In our planning space we have a checkbox that’s getting checked when a task is overdue. Therefore whe’re using the following formula.

(Due date \< Today()) and (State.Final != true)

This way you can create a view to only show tasks with the checkbox checked.  
You can also colorcode those tasks in your other views so they stand out.

Maybe this is what you’ve been looking for.

---

<div class="post-metadata">

**Author:** ![A\_Sleman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/a_sleman/32/6279_2.png) [@A\_Sleman](https://community.fibery.io/u/A_Sleman)\
**Post date:** [February 25, 2023, 8:23am UTC](https://community.fibery.io/t/overdue-task-formula/4048/9 "2023-02-25T08:23:03Z")

</div>

Hi thank you for your suggestion  
but unfortunately this is not what I’m looking for I’m looking for, i want the checkbox to be checked as soon as the end date of a task has passed the current time not the current day.

---

<div class="post-metadata">

**Author:** ![A\_Sleman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/a_sleman/32/6279_2.png) [@A\_Sleman](https://community.fibery.io/u/A_Sleman)\
**Post date:** [February 25, 2023, 8:27am UTC](https://community.fibery.io/t/overdue-task-formula/4048/10 "2023-02-25T08:27:14Z")

</div>

> [@Chr1sG](#):
>
> ecalculating every second. This would overload

Thank you for explaining

---

<div class="post-metadata">

**Author:** ![schorsch](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@schorsch](https://community.fibery.io/u/schorsch)\
**Post date:** [July 31, 2023, 7:43am UTC](https://community.fibery.io/t/overdue-task-formula/4048/11 "2023-07-31T07:43:08Z")

</div>

I am currently trying to implement a simplistic calendar-reminder solution while avoiding external/SMTP mailing functions. unfortunately state/workflow-changes do not seem to trigger any notifications; I guess automated commenting would be worth the next attempts.

I can understand that per-second updates would certainly overload backends/infrastructure. however it is close to impossible to automate anything reasonable in terms of mail/calendar timebased reminders when schedule granularity in automations is limited to once per hour:

are there any plans to increase granularities to 5 minutes or ideally once per minute?  
it would enable users to seriously implement event/calendar reminders et al where needed.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 31, 2023, 8:03am UTC](https://community.fibery.io/t/overdue-task-formula/4048/12 "2023-07-31T08:03:12Z")

</div>

> [@schorsch](#):
>
> I am currently trying to implement a simplistic calendar-reminder solution while avoiding external/SMTP mailing functions. unfortunately state/workflow-changes do not seem to trigger any notifications; I guess automated commenting would be worth the next attempts.

Can you explain a bit more what you’re trying to achieve?  
It sounds like you could just make an automation that triggers on a state change and sends a notification.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/0f3c586f745160c311996b1ccaea6fbb4c06c0a6.png)

---

<div class="post-metadata">

**Author:** ![schorsch](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@schorsch](https://community.fibery.io/u/schorsch)\
**Post date:** [August 1, 2023, 8:20am UTC](https://community.fibery.io/t/overdue-task-formula/4048/13 "2023-08-01T08:20:26Z")

</div>

dear @Chr1sG - thank you for your swift reply. a lot of work going on right now so I’m delving into fibery on the sidelines unfortunately. quite some concepts like possibly data containers/collections like expected “json-format”, i.e. list of strings, list of dict/objects etc. not yet clear at all. especially in fields like singleselect, multiselect or assignees.

in any case I’ll try with some rough pseudo-code to hopefully make the goal a bit a clearer?

read list of assignees in appointment

- if [due date] - Today()/Now() \< Hours(24)  
► notify or unassign+reassign list of employees…

… or whatever means lead to usecase of notifications and/or E-Mail notification without actually using external mail/smtp accounts.

Ideally this should also occur at arbitrary stages or by user preference: like 12h before due date, 2hours, 1hour, 15 minutes?

As you see “Now()” only being available in Automations and Automations being limited to granularities of 1h-schedules is a problem: not only for 15-min intervals but even in terms of implementing 1- or even 2-hour reminders as one is forced to somehow “catch” hours in a grid which is highly impractical.

As I said I understand realtime or second-intervals are a problem technically to be avoided: minute schedule intervals should still be feasible without much issues? while leading to way more possibilities in datetime-based automations and functionality. not the full feature set of every user is going to be around datetime or reminders in 1-minute granularities.

so this entire featureset on your end, including 1-hour schedules is basically EOL planned to be removed?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [August 1, 2023, 8:40am UTC](https://community.fibery.io/t/overdue-task-formula/4048/14 "2023-08-01T08:40:50Z")

</div>

OK, I think I understand.

It was this line:

> [@schorsch](#):
>
> unfortunately state/workflow-changes do not seem to trigger any notifications;

that made me think you needed triggering on a field value change, but it sounds like you need the granular triggering that Fibery doesn’t offer.

> [@schorsch](#):
>
> it is close to impossible to automate anything reasonable in terms of mail/calendar timebased reminders when schedule granularity in automations is limited to once per hour

I guess it depends on people’s needs. For me personally, I don’t need greater granularity than 1-hour but I understand that others might.  
TBH Fibery is not supposed to be a replacement for a traditional calendar.

> [@schorsch](#):
>
> minute schedule intervals should still be feasible without much issues?

It _might_ be technically feasible, but the potential hit on performance is probably too much to accept, I’m afraid.

---

<div class="post-metadata">

**Author:** ![schorsch](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@schorsch](https://community.fibery.io/u/schorsch)\
**Post date:** [August 11, 2023, 7:00am UTC](https://community.fibery.io/t/overdue-task-formula/4048/15 "2023-08-11T07:00:10Z")

</div>

ty once again: how/where did you setup that notification step/update in automations - “notify users”… is that some sort of extension/integration? I do not see this option in vanilla setup. whats the clicking/menu-path for that specific extension to install via official/user-“integrations”?

---

<div class="post-metadata">

**Author:** ![schorsch](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@schorsch](https://community.fibery.io/u/schorsch)\
**Post date:** [August 11, 2023, 7:07am UTC](https://community.fibery.io/t/overdue-task-formula/4048/16 "2023-08-11T07:07:16Z")

</div>

nvm found it, vanilla. user error + samsungtablet + bluetooth mouse-wheel, I guess. 🙂
