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.

Amount of days/months expired

Featured Replies

I have got a calculation written to calculate if a date has expired but I'm not sure how to calculate the amount of time that has expired??

My calc is

If ( renewal date ≤ Get ( CurrentDate ) ; "Expired" ; "" )

But how do I work out (in this instance) how many months have expired??

Thanks in advance

Depending on how what you want to see as the "Months"

this could be as simple as

(End Date - Start Date) / 30

Or this one that I borrowed from John Mark Osborne:

(Year(End Date + 1) -

Year(Start Date + 1)) * 12 +

(Month(End Date + 1) -

Month(Start Date + 1)) -

Case(Day(End Date + 1) = Day(Start Date); 0; Day(End Date + 1) < Day(Start Date + 1); 1; 0)

HTH

Lee

[color:red]p.s.

This calculation comes from a file by JMO that he sells at his web site (see the sponsors) and is well worth the price, as it has several good calculations. Link

Edited by Guest
p.s.

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.