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.

Calculating Working Hours

Featured Replies

I have a telephone call log style database which contains the following fields:

Log Date

Log Time

Close Date

Close Time

I already use a number of calculation fields to give me how many hrs/mins/secs a call was open for (calculated upon entry of the Close Date & Time). This works fine, but my next step is to calculate the number of 'Working Hours/Mins & Secs' (Between the Log Date/Time and Close Date/Time) a call has been open for based upon a 9 - 5 working day.

Some calls stay open for a few minutes, others can be several days.

Where do I start with this one!! ?

Hi,

Create a calculation field (lets call it cDurationOfCall)

(Close Date - Log Date)*86400 + (Close Time - Log Time)

Now, I know that this is just the beginning, because I built a call control solution that had to take into account 9-5 (but also weekends and bank holidays). I will see if I still have that solution.

Hi Matt,

While waiting for Andy to provide his solution, another thing you may consider is displaying the status of the field as well. If you make the calc num, unstored and apply:

Case(IsEmpty(CloseDate) or IsEmpty(CloseTime), "Open", (CloseDate - LogDate)*86400 + (CloseTime - LogTime))

This will flag any calls still open and eliminate the funky problems caused by logs that are still open (ie, Close date/time fields are blank). Been there ... done that!! smile.gif

LaRetta

  • Author

Thanks for the replies Andy / LaRetta,

Would appreciate that example Andy.

Cheers

Matt

Matt,

The example I have (which I have to strip from the solution) is based around a 9-5 date.

as I said, this was for a call control centre, that had response times required etc. It allowed for 9-5, weekends and bank holidays.

It also had percentages for calls that met the allotted times, and those that did not. Average response times, etc, etc, etc.

It may take a while to strip out (as I am getting ready for a major launch myself), but if you can wait I will get it to you as soon as I can.

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.