Skip to main content

Hours remaining in the day

  • April 2, 2019
  • 4 replies
  • 49 views

Forum|alt.badge.img+3
  • Participating Frequently

How would I subtract a duration from the total number of hours in the day? For example, if I have a task that takes 6 hours, I’d like to set up a field that shows how many hours are left in the work day.

I’ve tried a few things but keep getting errors.

Thanks!

4 replies

Forum|alt.badge.img+4
  • Participating Frequently
  • April 2, 2019

can you post your formula that gives you the error?


JonathanBowen
Forum|alt.badge.img+18

Hi @E007 - if your hours in the day and hours worked are both “duration” fields, you can just take them away to get the remaining time:

The formula for “Remaining Time” in my example is:

{Hours in Day} - {Time Worked (Duration)}

You also have to set the format of the formula field to duration too:

JB


Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • April 2, 2019

Hi @E007 - if your hours in the day and hours worked are both “duration” fields, you can just take them away to get the remaining time:

The formula for “Remaining Time” in my example is:

{Hours in Day} - {Time Worked (Duration)}

You also have to set the format of the formula field to duration too:

JB


A solution so simple and elegant yet I didn’t even see it. Thanks, Jonathan!


Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • April 2, 2019

can you post your formula that gives you the error?


Thanks for being willing to help, Mike!