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.

Calculation w/ maximum result

Featured Replies

I created a calculation field to track annual vacation and sick leave (previous yr balance + earned leave - used leave = new balance) and it is working just fine. However, for vacation time, we are only allowed to carryover a maximum of 48 days. What do I add to the calc to get a result no > 48?

(Case(previous yr balance>48,48,previous yr balance) + earned leave - used leave)

Hi Dblwide,

I suggest that you use something along the lines of:

Min(48, PreviousBalance)

wink.gif

  • Author

Thanks to John and Ray for your replies. I still need help. The "previous balance" field is already <= 48. I need the "new balance" that the calculation field is calculating to be no greater than 48. I tried modifications of your suggestions to get this to work, but I can't get it right. Any other suggestions?

I. E: previous balance = 48 days, + earned 15 days, - used 10 days, new balance is still 48 not 53.

So Min( 48, previous yr balance + earned leave - used leave ) doesn't work for you?

  • Author

THANKS! Now I get it! Problem solved. You are my heros!

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.