Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

calculation to get the number of hours worked

Featured Replies

Hi Guys,

Actually i'm collecting data from a RFID reader and data shows the time in and out of employees. Normally if an employee works on a shift system the time in will be calculated time/date=X and time out will be time/date=Y that is two different dates. for example shift workers will have time in today at 6:00pm and time out tomorrow at 2:00am. can somebody tell me the calculation to get the number of hours worked for this employee or have a better idea how to proceed.

Thanks....... :D

the time in will be calculated time/date=X

Not sure what "time/date=X" means. If you only have time data, you can use =

EndTime - StartTime + ( EndTime < StartTime ) * 86400 

to calculate the duration. Note that this assumes duration does not exceed 24 hours.

  • Author

Hi,

What I mean by time/date=X is:

Date= 01/01/2011(dd/mm/yyyy)

StartTime= 18:00:00

Date= 02/01/2011 (Next day)

EndTime= 03:00:00

As you see the date is different but it should count as 1 day worked and I should be able to get the answer= 9:00:00hrs

Please help!!!!!!!!

Sorry for duplicating the post.

Thanks..

... and the comment's calc ( result type: time ) is correct:

3 - 18 + 24 = 9

If you also have a StartDate and EndDate, make the calculation =

Timestamp ( EndDate ; EndTime ) - Timestamp ( StartDate ; StartTime ) 

As Daniele noted, the result type should be Time.

We are assuming here that all four fields are in the same record. If that's not the case we need more information about how your data is organized.

  • Author

Many thanks guys,

I will try it.

Cheersssss

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.