Skip 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.

Posting time

Featured Replies

I'm working on a time card and have 1 field "Time In" and 1 field "Time Out". As long as the time is within one 24 hour period, it calculates perfectly (in time, not numbers) But if a person signs in at 11:00 at night and signs out at 7:00 the next morning then the problems begin. I've tried an if formula, but to no avail.

Can these two different sign ins be compatible?

Thanks for any help.

You could use the Case() statement in a calculation to take care of the problem.

For example, using the 24-hour time format, your sample would be:

Time In: 23

Time Out: 07

Then I can use the calculation:

Case (Time In > Time Out; Time Out + 24 - Time In;Time Out - Time In)

In other words, if the Time In is greater than the Time Out value, add 24 hours to Time Out before subtracting Time In, which will give you the correct number; otherwise, just subtract Time In from Time Out. Of course, you would alter the calculation to deal with time values rather than straight numbers, but hopefully this will put you on the right track.

-Stanley

Either that or switch the fields to Timestamp type. See also:

http://fmforums.com/forum/showtopic.php?tid/183791/post/236635/#236635

  • Author

This worked great

TimeFinish - TimeStart + ( TimeFinish < TimeStart ) * 86400

Thanks so much.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.