# Custom rule conditions Due Date After/Before don't have relative dates

**URL:** <https://forum.asana.com/t/custom-rule-conditions-due-date-after-before-dont-have-relative-dates/614248>\
**Category:** Features Launched\
**Tags:** launched\
**Created:** [23 November 2023 05:38 UTC](https://forum.asana.com/t/custom-rule-conditions-due-date-after-before-dont-have-relative-dates/614248 "2023-11-23T05:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![anon46631740](https://luna1.co/8d76cd.png) [@anon46631740](https://forum.asana.com/u/anon46631740)\
**Post date:** [10 July 2025 16:06 UTC](https://forum.asana.com/t/custom-rule-conditions-due-date-after-before-dont-have-relative-dates/614248/25 "2025-07-10T16:06:46Z")

</div>

I might not be reading the original post (and comments) right, but the way I’m understanding this, a custom field could help!

I created a custom formula field that I just named “Days” and use that in my rule to sort my tasks. So when a task is due today, the “Days” custom field would be 0, and based on my rule, the task should appear under my “Due Today” section.

**Custom Field Formula:** [[$DIVIDE\_FUNCTION]]([[$SUBTRACT\_FUNCTION]]([[$DUE\_DATE]], [[$TODAY]]), 1440) + 0  
^_Formula credits to @Richard_Sather and his [custom field templates](https://forum.asana.com/t/free-custom-field-templates/501371)!_

Screenshots of task organization and the rule:

 ![image](https://us1.discourse-cdn.com/asana/original/4X/e/d/a/edae5f84ca6a2e7071ab08d2541051de6d6ae48a.png)  
 ![image](https://us1.discourse-cdn.com/asana/original/4X/d/4/8/d483915f467218c073033989b76236364b6c415a.png)  
 ![image](https://us1.discourse-cdn.com/asana/original/4X/2/d/f/2df4a348064fe4293681b8ad946ddd111190b234.png)  
 ![image](https://us1.discourse-cdn.com/asana/original/4X/8/e/f/8efcec0f8093799947418ee10168f529c934bcc1.png)

---

_[View the full topic](https://forum.asana.com/t/custom-rule-conditions-due-date-after-before-dont-have-relative-dates/614248)._
