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.

ExpirationDate ( StartDate ; Terms )

Featured Replies

Name & Parameters: [color:red][big] ExpirationDate ( StartDate ; Terms ) [/big]

Description: Calculates the expiration date when given the a starting date and the total of months.

Sample Input:

TermExpirationDate ( "1/1/2005"; "16")

Results:

5/1/2006

Recursive: no

Formula:

Date ( Case ( Mod ( (Month( StartDate ) - 12) + Terms ;12 ) = 0; 12; Mod ( (Month( StartDate ) - 12) + Terms ;12 )) ; Day ( StartDate ); Case ( Case ( Mod ( (Month( StartDate ) - 12) + Terms ;12 ) = 0; 12; Mod ( (Month( StartDate ) - 12) + Terms ;12 )) = 12; Int(Year ( StartDate ) + (Terms + GetAsNumber ( Month ( StartDate ) )) / 12) - 1; Int(Year ( StartDate ) + (Terms + GetAsNumber ( Month ( StartDate ) )) / 12)) ) 

Required Functions:

Author(s):) Coolboy

Date: 07/21/06

Credits:

Disclaimer:

FM Forums does not endorse or warrantee these files are fit for any particular purpose. Do not post or distribute files without written approval from the copyright owner. All files are deemed public domain unless otherwise indictated. Please backup every file that you intend to modify.

I believe

Date ( Month ( StartDate ) + Terms ; Day ( StartDate ) ; Year ( StartDate ) )

should be quite sufficient.

  • Author

Hey, I guess there's always an easier way. You are certainly a lot more experienced than I.

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.