Display Calendar Days for Tasks in Microsoft Project
Question details
The user needs a separate Microsoft Project field that displays task duration in calendar days, including weekends and holidays.

- Product
- Microsoft Project
- Device & OS
- not provided
- Scenario
- A project schedule needs a calendar-day count alongside the working-time duration, including for tasks that have already started.
- Observed behavior
- The desired field should show calendar days without replacing or changing the task's working-time duration.
Open the project and check that the tasks have valid Start and Finish dates. Decide whether you want to count both the start and finish dates; the formula below includes both.
Add a custom calendar-day field in Microsoft Project
Use a separate text field to count calendar dates from a task's scheduled start through its scheduled finish.
This count includes weekends and holidays because it compares dates rather than working time. It counts both the start and finish dates, so a task starting and finishing on the same date shows one calendar day.
The formula uses the current Start and Finish fields, even for tasks that have already started. It is not an actual-to-date measure or a count of elapsed 24-hour periods.
In Microsoft Project, open the project and select Project > Custom Fields.
Under Task, select Text from the field type list and choose an unused field such as Text1. Select Rename and enter Calendar Time.
Select Formula and enter CStr(DateDiff("d",[Start],[Finish])+1) & " calendar days". Confirm the formula and any warning about replacing existing field values.
In Calculation for task and group summary rows, select Use formula, then select OK.
In a task table, right-click a column heading, select Insert Column, and choose Calendar Time or Text1. Check a few tasks against their Start and Finish dates.

Track calendar-day counts in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for a smooth move between office suites. Use WPS Spreadsheets to calculate calendar-day counts in a task list; it does not change or fix Microsoft Project schedules.

Frequently Asked Questions
Does the custom field change the task's Duration?
No. A formula in Text1 displays a separate value and does not replace the Duration field or change the project calendar.
Does the calendar-day count include weekends and holidays?
Yes. DateDiff compares the task's Start and Finish dates without excluding nonworking days. The added 1 includes both endpoint dates.
Can I show the calendar-day count on summary tasks?
Yes. In Project > Custom Fields, select the custom field and choose Use formula under Calculation for task and group summary rows.
Does this formula show time elapsed since a task actually started?
No. It counts calendar dates between the current Start and Finish fields. An actual-to-date count would require different date fields and a separate formula.




