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.

Help with a calculation

Featured Replies

i'm looking for a little help with a calculation. I'm sure this is a breeze for most of you. but i have a very limited knowledge of the calculation language.

ok here is is. I want to calculate total hours paid when up to 8 hours is straight pay 8 to 12 hours is x1.5 pay 12 to 14 hours is x2.0 pay

thanks

Try:

Case(

WH > 12 ; 12 + Mod ( WH ; 12 ) * 2 ;

WH > 8 ; 8 + Mod ( WH ; 8 ) * 1.5 ;

WH

)

Another way to look at it:


(

Min ( Hours ; 8 )

+ 

Min ( Max ( 0 ; Hours - 8 ) ; 4 ) * 1.5

+

Max ( 0 ; Hours - 12 ) * 2

) * Rate

I am not sure this part is what they want:

WH > 12 ; 12 + Mod ( WH ; 12 ) * 2 ;

I think that when hours > 12, you need to split them as:

8 * 1 + 4 * 1.5 + Mod ( WH ; 12 ) * 2

or shortly:

WH > 12 ; 14 + Mod ( WH ; 12 ) * 2 ;

WH > 12 ; 14 + Mod ( WH ; 12 ) * 2 ;

Yes, this is correct.

There was another thing that was bothering me re using Mod(), but I couldn't remember what it was. Suppose you have managed to work 24 hours or more...

  • Author

thanks everyone. what a great community

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.