How to Create a SharePoint Due In Column with Days Remaining
Question details
The user wants to create a SharePoint calculated column that displays the exact number of days remaining between today's date and a specified due date.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Tracking project deadlines or task due dates in a SharePoint list or document library by displaying a countdown of remaining days.
- Observed behavior
- Users need a dynamic countdown, but the native TODAY() function in SharePoint calculated columns does not recalculate continuously on a daily basis.
Ensure you have permission to edit list columns in your SharePoint site and access to Power Automate to create a scheduled cloud flow.
Use Power Automate and DATEDIF to Calculate Days Remaining
Because SharePoint calculated columns do not automatically refresh the TODAY() function every day, you must use a scheduled Power Automate flow to update a 'Today' column, which is then used in your calculation.
SharePoint only recalculates formulas when an item is created or modified. To maintain an accurate daily countdown, a background automation is required to force the date update.
Navigate to your SharePoint list settings and create two Date and Time columns: one named 'Due Date' (for your deadline) and one named 'Today' (to hold the current date).
Open Power Automate and create a Scheduled Cloud Flow that runs every day. Add an action to 'Get items' from your SharePoint list, and then add an 'Update item' action to write the expression 'utcNow()' into the 'Today' column for all items.
Back in your SharePoint list, create a new Calculated Column named 'Due In'. In the formula box, enter: =DATEDIF([Today],[Due Date],"d")
Set the data type returned by the formula to 'Number' and save the column. The list will now dynamically show the days remaining based on the daily Power Automate updates.

Manage Deadlines Easily with WPS Office Spreadsheets
While tracking dynamic dates in SharePoint requires complex Power Automate workarounds, doing so in a spreadsheet is much simpler. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office that lets you manage project deadlines using simple built-in date functions seamlessly.
- 1. Open WPS Spreadsheet: Launch WPS Office and create a new Spreadsheet for your task list.
- 2. Set up your dates: Enter your deadlines in a 'Due Date' column (e.g., cell B2).
- 3. Calculate days remaining: In the adjacent column, enter the formula =B2-TODAY() and format the cell as a number. The value will update automatically every time you open the file.

Frequently Asked Questions
Why doesn't the TODAY() function update automatically in SharePoint calculated columns?
SharePoint is designed to only recalculate a calculated column when the specific list item is actively created or modified by a user or system. It does not run background recalculations for functions like TODAY() on a daily basis to save server resources.
Does using Power Automate to update SharePoint lists require a premium license?
No. The standard SharePoint connectors used to 'Get items' and 'Update item' on a scheduled basis are included in standard Microsoft 365 plans and do not require a premium Power Automate license.
What happens to the Due In column if the Due Date has already passed?
If the Due Date is earlier than the 'Today' date, the DATEDIF function may return an error (#NUM!). To handle past due dates gracefully, you can wrap the calculation in an IF statement, such as checking if [Due Date] < [Today].




