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.

Time computation in 8.5

Featured Replies

I have an application where time is entered as a number based on a 24 hour clock without separators (such as ":"); for example, the "start time" of 8:30 AM would be entered as 0830 and "finish time" of 4:00PM would be entered as 1600.

I would like a way to calculate the total time (duration) between two such entries that results in a number not time.

Obviously, a simple calc:

Total Time = "finish time" - "start time"

for on the hour entries is simple but in the case above, the calc would generate 730 and the preferred result would be 7.5 (hours).

Edited by Guest

Try:

Div ( end ; 100 ) - Div ( start ; 100 ) + ( Mod ( end ; 100 ) - Mod ( start ; 100 ) ) / 60

  • Author

Thank you -- that works great:)

I furthered this to account for durations that go into at least the next day:

Div ( end ; 100 ) - Div ( start ; 100 ) + ( Mod ( end ; 100 ) - Mod ( Start ; 100 ) ) / 60

+

((returndate_calc - begindate_calc) * 24)

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.