Skip to main content
Solved

Finding the duration between two date and time fields

  • August 2, 2021
  • 3 replies
  • 47 views

Forum|alt.badge.img+11

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.

Best answer by Databaser

Hi @Wayne_Merlino

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

Try:

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

More info.

You can then nest this formula into an IF statement.

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

3 replies

Databaser
Forum|alt.badge.img+25
  • Brainy
  • Answer
  • August 2, 2021

Hi @Wayne_Merlino

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

Try:

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

More info.

You can then nest this formula into an IF statement.

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


Forum|alt.badge.img+11
  • Author
  • Inspiring
  • August 2, 2021

Hi @Wayne_Merlino

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

Try:

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

More info.

You can then nest this formula into an IF statement.

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


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


Databaser
Forum|alt.badge.img+25
  • Brainy
  • August 3, 2021

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


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.