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.

Calculating end date of a specified duration of months

Featured Replies

Dealing with some contract-related fields.

One field is for the date of contract signing.

Another field is for the duration of the contract, expressed in months. Months could range from 6 to 36 or possibly even more.

Would like to have a field that auto-fills the contract expiration date, which would be calculated from the signing date and the duration of months.

Any ideas?

Thanks a lot.

Hi Josh, is it inclusive (so you want the date PAST the month), [color:green]ie, 12 months would be 6/1/07 - 6/1/08 or would it be 5/31/08? Also, please first specify what you mean by month. For example, how would you answer these:

Expiration Date: 8/31/2007

Duration: 1 month

Answer? 9/30/2007 or 10/1/2007 or ?

Expiration Date: 2/29/2004

Duration: 12 months

Answer? 2/28/2005 or 3/1/2005 or ?

Once we have the set of rules, we can give you the calculation. :wink2:

Edited by Guest
Added green

  • Author

Hi Josh, is it inclusive (so you want the date PAST the month), [color:green]ie, 12 months would be 6/1/07 - 6/1/08 or would it be 5/31/08? Also, please first specify what you mean by month. For example, how would you answer these:

Expiration Date: 8/31/2007

Duration: 1 month

Answer? 9/30/2007 or 10/1/2007 or ?

Expiration Date: 2/29/2004

Duration: 12 months

Answer? 2/28/2005 or 3/1/2005 or ?

Once we have the set of rules, we can give you the calculation. :wink2:

Thanks for the reply, and sorry I didn't see it sooner.

Question 1: 12 months from 6/1/2007 would be 6/1/2008

Question 2: 9/30/2007

Question 3: 2/28/2005

See if these help:

http://www.fmforums.com/forum/showpost.php?post/217855/

http://www.fmforums.com/forum/showpost.php?post/292727/

  • Author

That first one worked like a charm!

Thanks!

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.