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.

Need help with a date calculation

Featured Replies

I have a "PurchaseDate", "ExperationDate" and "Term" fields. The calculation I need is this. When a date is entered into "PurchaseDate" and a number of months is entered into "Term" I need the "ExperationDate" to calculate the date the contract expires.

I know I know how to do this but for some reason can't figure it out.

Thanks,

Bill

Hi:

There is probably a couple of ways to do this - but this is how I would do it:

Expiration Date=

Date(Month(PurchaseDate) + Terms, Day(PurchaseDate) , Year(PurchaseDate))

Two fields:

Term: Number Field enter in days (can be a pull down menu of standard 30, 60, 90 etc

Expiration Calculation date result =

Purchase Date + Term

Lee

  • Author

Thanks guys and Kenneth your script works great! Thanks so much for the help.

Bill

Lee brings up a good point.

In and invoice system, say you have 30,60,90,120 day terms. You can make a calc to determine if an invoice is past due. Then you can find on that field.

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.