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.

Featured Replies

I'm trying to create a calculation field that calculates time and days it took to quote.

I have record created date and record created time fields and then record quoted date and record quoted time fields.

I'm hoping to have a field that shows average time to quote 3 days, 34 minutes

Anyone have experience on something like this?

Thank you

5 hours ago, Matthew R White said:

have record created date and record created time fields and then record quoted date and record quoted time fields.

You could save two fields here by using timestamp fields instead.

Anyway, you can easily calculate the duration by subtracting:

Timestamp ( QuotedDate ; QuotedTime ) - Timestamp ( CreationDate ; CreationTime )

That will give you the total duration in seconds, and now you need to divide it into days, hours and minutes (assuming that's how you want to display it) =

Let ( [
elapsed = Timestamp ( QuotedDate ; QuotedTime ) - Timestamp ( CreationDate ; CreationTime ) ;
days = Div ( elapsed ; 86400 ) ;
time = Mod ( elapsed ; 86400 ) ;
hours = Hour ( time ) ;
minutes = Minute ( time )
] ;
days & " days, " & hours & " hours and " & minutes & " minutes"
)

If this is meant to show an average, then calculate only the elapsed duration, use a summary field to produce the average duration, and another calculation field to break the summary value into its individual components as shown.

 

Edited by comment

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.