A web-based tool in Microsoft 365 that enables users to quickly create surveys, quizzes, polls, and feedback forms.
Hi @Subrata S Roy,
Thank you for posting your question to Microsoft Q&A Forum.
In SharePoint, this can be done using a Calculated column, because SharePoint stores date/time values as numbers (where the difference is calculated in days).
Step 1: Create the Start and End columns
Make sure both columns are created as:
- Column type: Date and Time
- Format: Date & Time or Time only (either works)
Step 2: Create a Calculated column
- Click Add column > More
- Select Calculated (calculation based on other columns)
- Enter a column name, e.g. Duration
Step 3: Use the appropriate formula
- Duration in hours
=([End Time] - [Start Time]) * 24
Then set the column type to Number with 1 decimal.
This works because SharePoint returns the difference in days, so multiplying by 24 converts it to hours
- Duration in minutes
=([End Time] - [Start Time]) * 1440
(24 × 60 = 1440 minutes per day)
- Duration as Days, Hours, Minutes (text format)
=CONCATENATE(INT([End date ]-[Start date ]),"Days",TEXT([End date ]-[Start date ],"h""hrs""m""mins"""))
- Return type: Single line of text
- Useful for display purposes only (not for calculations)
However, there are a few important limitations to note:
- Calculated columns do not support dynamic functions such as
NOW()for real‑time calculations. - If the End Time occurs before the Start Time (for example, overnight scenarios), the calculated result may be negative.
- For advanced use cases such as overnight durations, break handling, or real‑time tracking, Power Automate or Power Apps should be used instead.
I hope this information is helpful. Please follow the steps above and let me know if it works for you. If not, we can continue working together to resolve the issue.
If you have any questions or need additional assistance, please don’t hesitate to reach out so I can continue to support you.
Thank you for your patience and understanding. If you found the response useful, please consider marking it as accepted, as this may help other community members who are looking for similar guidance.
I look forward to continuing the conversation.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.