How WPS Spreadsheets Gantt Chart Template Calculates Activity Duration
Question details
The user needs to understand how a Gantt chart template in WPS Spreadsheets calculates task duration from start and end dates and why an activity may display a two-day duration instead of the expected 52 days.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- A user is reviewing a Gantt chart template to understand why an activity duration formula returns 2 days instead of 52 days.
- Observed behavior
- The activity uses =TODAY()-1 as the start date and =[@[Start Date]]+1 as the end date, producing a two-day span from 28-Aug-2023 through 29-Aug-2023.
Open the Gantt chart workbook in WPS Spreadsheets and make the hidden calculation worksheet visible so you can inspect the formulas behind the activity dates.
Inspect the hidden worksheet formulas to trace the duration calculation
Use this method first to confirm exactly why the activity duration shows two days instead of the expected 52 days.
The Gantt chart template often keeps its date formulas in a hidden worksheet. The displayed duration is based on those formulas, so the two-day result is normally a formula result rather than a chart error.
In WPS Spreadsheets, right-click any sheet tab and choose Unhide, or go to the Home tab, click Format > Hide & Unhide > Unhide Sheet, then select the hidden worksheet that contains the Gantt calculation.
Click the formula cell mentioned in the template, such as D15, and inspect the formula shown in the formula bar.
Confirm whether the start date is =TODAY()-1 and the end date is =[@[Start Date]]+1. These formulas return two consecutive dates, so the duration displays as 2 days.
If the activity should span 52 days, replace the date formulas with fixed start and end dates or add a duration formula such as =[@[End Date]]-[@[Start Date]]+1.

Replace dynamic date formulas with fixed 52-day project dates
Use this when you need the Gantt chart to represent a fixed 52-day schedule instead of the default two-day example.
Calculate Gantt Chart Activity Duration in WPS Spreadsheets
Inspect and adjust the Gantt chart date formulas in WPS Spreadsheets so task duration correctly shows the intended calendar days, whether it is 2 days or 52 days.
- 1. Open the Gantt chart template in WPS Spreadsheets: Launch WPS Office and open the .xlsx Gantt chart file, or download a Gantt chart template from the WPS template library.
- 2. Unhide the calculation worksheet: Right-click any sheet tab and choose Unhide, then select the hidden worksheet containing the activity formulas.
- 3. Inspect the formula: Click the duration cell such as D15 and view the formula in the formula bar to see =TODAY()-1 and =[@[Start Date]]+1.
- 4. Edit start and end dates: Replace the dynamic date formulas or enter fixed start and end dates that produce the required 52-day activity.
- 5. Confirm the duration: Check the duration cell or add =[@[End Date]]-[@[Start Date]]+1 to display the correct number of calendar days.

Frequently Asked Questions
Why does the Gantt chart template show 2 days instead of 52 days?
Because the activity start date is =TODAY()-1 and the end date is =[@[Start Date]]+1, so the activity spans two consecutive calendar days. To get 52 days, set the start and end dates 52 days apart or use a separate duration formula such as =[@[End Date]]-[@[Start Date]]+1.
Where is the activity duration formula in the Gantt chart template?
It is usually in a hidden worksheet, often in a cell such as D15. In WPS Spreadsheets, right-click any sheet tab and choose Unhide, or go to Home > Format > Hide & Unhide > Unhide Sheet, then click the formula cell to view it.
How do I create a separate duration formula in WPS Spreadsheets?
In a duration cell, enter =[@[End Date]]-[@[Start Date]]+1 if the table uses structured references, or enter =B2-A2+1 with normal cell references, then press Enter.
Can I use a fixed start date instead of =TODAY()-1 in the Gantt chart template?
Yes. Select the start date cell and type a fixed date, or enter a cell reference to the project start date. The activity bar recalculates when the end date is changed.
Is the WPS Gantt chart template compatible with Microsoft Excel?
Yes. WPS Spreadsheets opens and saves .xlsx Excel workbooks and preserves formulas, hidden sheets, and Gantt chart date calculations.




