# Re: Finding the duration between two date and time fields

Solved
2063 0
cancel
Showing results for
Did you mean:
6 - Interface Innovator

Hi,

I have a time and date stamp being created in a field (Last Modified Time) for a field that we use to say when an Estimate can be made - sort of a “Clock starts ticking Now!” timestamp. The original field that the Last Modified is watching is filled by a Zapier workflow.

I then have a second field that gets time and date stamped (Last Modified Time) with when we check a box for when a user says the Estimate is done.

Lets say the 1st field has a date and time stamp of 8/1/21 2:30 pm, and the second field has a time stamp of 8/2/21 3:34 pm. How do I calculate the difference between the two? The goal is 48 hrs, so if the total came out as hours I would be fine with that. I currently have tried the following formulas but it seems to be related more to the fomatting allowed by AT but that is just a guess. Here is what I tried:

DATETIME_DIFF({Time Stamp on Estimate Checked}-{Time Stamp - Start Time})

also tried:

{Time Stamp on Estimate Checked}-{Time Stamp - Start Time}

Any help would be appreciated.

1 Solution

Accepted Solutions
12 - Earth

The formula should be formed with commas instead of “-”.

Try:

`DATETIME_DIFF({Time Stamp on Estimate Checked},{Time Stamp - Start Time}, "hours")`

You can then nest this formula into an IF statement.

PS: also check out the native “time tracker app”.

3 Replies 3
12 - Earth

The formula should be formed with commas instead of “-”.

Try:

`DATETIME_DIFF({Time Stamp on Estimate Checked},{Time Stamp - Start Time}, "hours")`

You can then nest this formula into an IF statement.

PS: also check out the native “time tracker app”.

6 - Interface Innovator

That worked perfectly! Thank you! I will also check out the time tracker app.

12 - Earth

Great :slightly_smiling_face: Would yo mind marking my comment as the solution to your question? This helps others who may be searching with a similar question.