
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 10:55 PM
Hi, I am a new user… can someone help how to get the amount of the time duration?
Thanks,
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 17, 2020 04:03 AM
Change the ‘minutes’ to ‘seconds’. It’s because you have the format in a time format. This formula is built well for a field with a format of Intiger. You’re looking for an output in duration so switching it to seconds will make the difference. So your formula would now read;
IF(
AND({End Time}, {Start time}),
DATETIME_DIFF({End Time}, {Start time}, 'seconds')
)
hth,
Nathalie@VAcePro.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 16, 2020 11:56 PM
Welcome to the community, @Takashi_Takiguchi!
If you’d like to return your result in minutes, this is the formula you would use:
IF(
AND({End Time}, {Start time}),
DATETIME_DIFF({End Time}, {Start time}, 'minutes')
)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 17, 2020 03:38 AM
Thank you for your helping hand @ScottWorld.
Unfortunately, it’s not working… how I cut and pasted the formula is wrong?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 17, 2020 04:03 AM
Change the ‘minutes’ to ‘seconds’. It’s because you have the format in a time format. This formula is built well for a field with a format of Intiger. You’re looking for an output in duration so switching it to seconds will make the difference. So your formula would now read;
IF(
AND({End Time}, {Start time}),
DATETIME_DIFF({End Time}, {Start time}, 'seconds')
)
hth,
Nathalie@VAcePro.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 17, 2020 04:07 AM
Thank you very much for your help, Nathalie!
Yes, it calculated it correctly now! :slightly_smiling_face:
Cheers,
Taka

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 17, 2020 07:51 AM
Thanks, @Nathalie_Collins!
Yes, to summarize what Nathalie said above:
- Use ‘minutes’ if you are looking for an integer result.
- Use ‘seconds’ if you are looking for a duration result, because duration formatting is based on number of seconds. (You can also multiply any minute integers by 60 to yield seconds, too.)
