
The Duration column in Microsoft Project counts working days. A task that says 9 d and starts on a Monday finishes on the Thursday of the following week: nine days of work, thirteen days on the calendar. The crew, the invoice and the plan agree on nine. The client, who was told “about two weeks”, is counting thirteen, and when the two numbers meet in a meeting somebody looks careless.
Project does not have a column for the calendar span of a task. You can build one in three steps, without changing anything in the schedule: a calendar with no days off, a number field with a short formula, and a column to show it. This guide is that procedure, and the two things that make it fail the first time.
In short
- Duration counts working days on the task’s calendar; a 9-day task spans 13 calendar days across a weekend, and Project shows only the 9.
- To see the calendar days, add a calendar with no non-working days (AllDays), a custom Number field with the formula
ProjDateDiff([Start],[Finish],"AllDays")/480, and a column that shows it. - 480 is the minutes in an 8-hour day: Project stores durations in minutes, and the formula counts them on the calendar you name.
- The new column is read-only information: it does not schedule anything, and it updates itself when dates move.
- If the task really runs around the clock — concrete curing, a server migration over a weekend — you do not want this: you want an elapsed duration (
9ed), which is a different thing.
Before you start
- Microsoft Project desktop, any version from 2010 to 2024 or Microsoft 365: the calendar dialog, custom fields and formulas have not changed in that time. The menu names below are those of the English interface.
- A plan whose tasks use the Standard calendar or one derived from it: eight working hours a day, weekends off. If your project calendar is different, the number 480 in the formula changes — see the note under step 2.
- Ten minutes. Nothing is installed, and the schedule itself is not touched.
Two questions that look like one
Before building anything, be sure which of two things you want, because Project answers them differently.
“The work happens on working days; I want to see how many calendar days it spans.” That is this guide. The task is scheduled exactly as before; you are adding a column that reads the span between Start and Finish on a calendar with no holes in it.
“The work itself does not stop for weekends.” Concrete cures on Sunday; a server migration runs through the night. For that, Project has elapsed durations: type 9ed instead of 9d (or eh, ew, emo for hours, weeks, months) and the task is scheduled across every day and hour regardless of the calendar. That changes the dates, which is the point. Do not use it just to make the number look like the calendar: you would be telling Project that people work on Sunday.
Step 1. A calendar with no days off
The formula in step 2 needs a calendar on which every day is a working day, so that “the working time between two dates” and “the calendar time between two dates” are the same thing.
- Go to Project → Change Working Time.
- Click Create New Calendar, choose Make a copy of the Standard calendar, and name it AllDays. Confirm.
- With AllDays selected, open the Work Weeks tab at the bottom of the dialog, select the default row and click Details.
- Select Saturday and Sunday together, choose Set day(s) to these specific working times, and type the same working hours the weekdays have — on the Standard calendar, 8:00–12:00 and 13:00–17:00.
- Confirm and close. Do not assign this calendar to the project or to any task: it exists only to be named in the formula.
Holidays: a copy of Standard carries over any exceptions you had defined on it (Christmas, national holidays). On AllDays, delete them in the Exceptions tab, or the formula will skip those days and the count will be short.
Step 2. A number field with a formula
Now the field that does the counting.
- Go to Project → Custom Fields (it is also on the Format tab of the Gantt Chart Tools).
- Select Task, and in the Type list choose Number.
- Pick Number1 (or any free one), click Rename and call it Calendar days: the column will carry that name.
- Click Formula and type:
ProjDateDiff([Start], [Finish], "AllDays") / 480- Confirm. Project warns that existing data in the field will be replaced by the formula: accept. Under Calculation for task and group summary rows choose Use formula if you want the span on summary tasks as well; leave None if you only want it on detail tasks.

What the formula does: ProjDateDiff returns the working time between two dates, in minutes, counted on the calendar named in the third argument. Project stores every duration in minutes; that is why the result has to be divided. On AllDays every day is an 8-hour working day, so 480 minutes (8 × 60) is one calendar day, and the division gives the number of days between Start and Finish with no weekend skipped.
Two details break this the first time for almost everybody:
- The argument separator is decided by Windows, not by Project. With English regional settings it is a comma, as above; with most European settings it is a semicolon:
ProjDateDiff([Start]; [Finish]; "AllDays") / 480. If Project rejects the formula with a syntax error and you cannot see why, this is why. - The quotes must be straight. Copied from a web page or a document they often arrive curly (“AllDays”), and the formula editor rejects them. Retype them.
And one note on the 480. It assumes AllDays has eight working hours a day, because it was copied from Standard. If your organisation’s base calendar has a different working day — 7.5 hours, say — copy AllDays from that calendar and divide by its minutes (450). The number to divide by is always “minutes in one working day of the calendar named in the formula”.
Step 3. A calendar days column in the table
- In the Gantt Chart view, right-click the heading of the Duration column and choose Insert Column.
- Start typing Calendar days and pick it from the list.
The new column sits next to Duration and reads, for a task of 20 working days that starts on a Monday and crosses three weekends, 26. For a 3-day task inside one week it reads 3. For a milestone it reads 0, because Start and Finish are the same instant.
The value follows the dates: move the task, change its duration, add a predecessor, and the column recalculates on its own. It is a number field, so it sorts, filters, groups and exports like any other column — which is usually the reason you wanted it in the first place.
A shorter formula, with no extra calendar
There is a second way that skips step 1 entirely. In the same Number field, use this formula instead:
DateDiff("d", [Start], [Finish]) + 1DateDiff counts the calendar days between the two dates; the +1 is there because the task also occupies the day it starts on. We measured it in Project 16.0 on a 20-day task from Monday November 2 to Friday November 27: it returns 26, the same as the AllDays method, with no calendar to maintain and nothing anybody can assign to a resource by mistake. Two differences to know: a milestone reads 1 instead of 0, and the count is in whole days, so no fractions. The same separator rule applies: semicolons with most European regional settings.
In our automated test the ProjDateDiff formula with the calendar name returned 0, while from the interface the same method gave 26 when we first wrote it up. Whichever formula you choose, check the column once on a task whose dates you know.
What this column is not
- It is not a duration. Typing into it does nothing to the schedule (the formula overwrites what you type anyway). It is a reading, not a control.
- It is not elapsed duration. If the work really runs through the weekend, use
edunits on the task; the column will then simply agree with Duration. - It counts whole working days of AllDays. A task that starts at 13:00 and finishes at 12:00 three days later shows a fraction; format the field to zero decimals in the Custom Fields dialog if fractions bother you, and remember they are honest.
- It is per plan. Custom fields and calendars live in the file. To have it in every new plan, define them in the Global template through the Organizer, or in your company template.
If something goes wrong
- “The formula contains a syntax error.” Nine times out of ten it is the separator (comma versus semicolon) or curly quotes. Retype the formula by hand.
- The column shows working days, the same as Duration. The calendar named in the formula still has Saturday and Sunday as non-working: go back to step 1 and check the Work Weeks details, and the spelling of the name.
- The count is short by a day or two around holidays. AllDays inherited exceptions from Standard. Delete them on AllDays.
- Summary tasks show 0. In Custom Fields, the calculation for summary rows is set to None. Change it to Use formula.
Frequently asked questions
Why does Microsoft Project show 9 days when the task takes two weeks?
Because Duration counts working days on the task’s calendar, and the Standard calendar has weekends off. Nine working days starting on a Monday end on the Thursday of the next week: thirteen calendar days. Both numbers are right; they answer different questions.
What is the difference between calendar days and elapsed duration?
Elapsed duration (9ed) changes how the task is scheduled: it runs through weekends and nights. The calendar-days column changes nothing; it reads the span between the Start and Finish the schedule already has. Use elapsed duration when the work does not stop; use the column when you only need to report the span.
Why divide by 480?
Project stores durations in minutes and ProjDateDiff returns minutes. On a calendar with eight working hours a day, one day is 480 minutes. If the calendar named in the formula has a different working day, divide by its minutes instead.
Does the column update when the dates change?
Yes. It is a formula field, so it recalculates whenever Start or Finish move, for any reason: a changed duration, a new predecessor, a shifted status date.
Can I do this without a formula?
Not as a column that follows the plan. You can read Start and Finish and count by hand, or export the two dates and subtract them in Excel, but the field described here is the only way to have the calendar span sitting next to Duration inside Project and staying correct as the plan moves.
Further reading on this blog
Disclosure: this is the blog of a company that makes project-control software. Nothing above needs our tools: a calendar, a custom field and a formula are standard Microsoft Project, and the column stays in your plan whatever else you use.
#MSProject #ProjectScheduling #CustomFields #HowTo #ProjectManagement