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

This should be fairly simple, but I can't get it to work:

I have a "Contract Start" Date Field and need to calculate the "Contract End" date based upon a "Contract Period" (Months) field, but I'm struggling to get calendar months to increment. If you attempt this using days, you get a different date next year.

For example, if the contract start is 14/06/2002 and the period is 12 Months, the Contract End needs to be 14/06/2003.

Hope this makes sence - thanks.

This is down to DJ -

NextReview=Date(Day(Contract Start),Month(Contract Start)+ Contract Period,Year(Contract Start))

OR

The following 'roll over' once the Contract End date has been reached.

If(Status(CurrentDate) < Contract Start,Contract Start,

If(

Mod(Month(Status(CurrentDate))-Month(Contract Start)+

12*(Year(Status(CurrentDate))-

Year(Contract Start)),

Contract Period)=0,

Date(Month(Status(CurrentDate))+

12*(Year(Status(CurrentDate))-Year(Contract Start))+

Contract Period*(Day(Status(CurrentDate))>= Day(Contract Start)),

Day(Contract Start), Year(Contract Start))

,

Date(Month(Status(CurrentDate))+

12*(Year(Status(CurrentDate))-

Year(Contract Start))-

Mod(

Month(Status(CurrentDate))-Month(Contract Start)+

12*(Year(Status(CurrentDate))-Year(Contract Start)),

Contract Period)+

Contract Period,

Day(Contract Start),

Year(Contract Start))

)

)

  • Author

Thanks for the reply

Tried the more simple 1st suggestion, as this is all thats required, but I get a strange result:

Fields

Start Date (date) = 14/06/2002

Period (Number) = 12

End Dat (Calculation) = 18/02/2003??

Can you explain this? shocked.gif

Sorry,

Try this:

Date(Month(Contract Start)+Contract Period,Day(Contract Start),Year(Contract Start))

Is that OK???

  • Author

Magic - Thanks Tom

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.