Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Need Help in Calculating Time: Total Time Worked *DELETED*


This topic is 7434 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Did you format your fields as time fields?

time_end - time_start = time_total

time_break_end_1 - time_break_start_1 = time_break_total_1

time_break_end_2 - time_break_start_2 = time_break_total_2

etc.

So your final time is:

time_total - time_break_total_1 - time_break_total_2 - etc.

Look at some examples at www.fmfiles.com/enduserbus5.html

  • 2 weeks later...
  • Newbies
Posted

The calculation above is nice when the job start & end is on the same day, but when the stop time is at 02.00h is and the start time was 18.00h the calculation doesn't funtion as it suposed to do.

( 86400 are the seconds in a day )

work time =

If ( (stopTime + 86400) - startTime > 86400 ; (stopTime - startTime) ; ((stopTime + 86400) - startTime ) - BreakTime )

This topic is 7434 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.