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.

Always Rounding Time Up

Featured Replies

I have a time field which I need to work out firstly is it over 10 hours and if it is I need it rounded to the nearest hour. A simple IF statement helped me with the first part.

 

The second part however I am not sure about.

ie.

10:59:22 ~ 11:00:00

10:01:30 ~ 11:00:00

 

Try =

Ceiling ( Timefield / 3600 ) * 3600
  • Author

Thanks!

I have a time field which I need to work out firstly is it over 10 hours and if it is I need it rounded to the nearest hour

10:01:30 ~ 11:00:00

Are you really going to charge for an hour if you go over 10 hours by 1 min and 30 secs?

  • Author

As crazy as that sounds no, it is actually for a duty roster tracking purpose.

If the staff member goes over 10 hours of work (plus any part of an hour) they need to have x amount of time off.

I’m curious, does Compensation time equal

1 min 30 sec = 1 min 30 sec

or  

1 min 30 sec = 1 hour?

  • 3 weeks later...
  • Author

Any hour past 10 hours or there part of i.e 1 minute and 30 seconds of duty over 10 hours would be 11 hours.

 

 

I think any reasonable employee would just call it 10 hours of work rather than creating an inquiry of questions and time spent on why they logged an extra second.

If this time is registered by a punch clock or card swipe the employee is not afforded the opportunity to be reasonable.

Create an account or sign in to comment

Important Information

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

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.