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

  • Newbies

I've searched this forum for a Month calculation but I don't see one that addresses my specific need. I have an employee database with a "startdate" field and I need a calculation for the number of Months each person has worked. I have a year calculation that works fine...

Year[Today] - Year[startdate] - If[Today< Date[Month[startdate], Day[startdate], Year[Today]], 1, 0]

...but I can't figure out how to break it down to months. I don't care about +/-30 day increments, just months. So if someone started on the 31st of a month, that could be included as one month.

First thing: don't use TODAY use the Status(CurrentDate) function.

Second: work out the algorithm to calculate months.

first determine the number of whole years: it's Year (Finish) - Year (Start).

Then work out the number of months based on the Months of the dates...

Month (Finish) - Month (Start)

This will be negative if the finish month is earlier in the year than the start month, which is exactly what we want.

So we end up with...

((Year (Finish) - Year (Start)) * 12) + Month (Finish) - Month (Start))

I just tried it and it seems to work, but sheck it yourself thoroughly before using it live.

Substitute the Status(CurrentDate) function for Finish if you want the calculation to be fromthe current date, rather than a finish date.

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.