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

We have a field called "1stReviewDate" another called "ReviewFrequency" (with defined values of annual, 6 monthly, Quarterly, Monthly) and another called NextReviewDate

Can anyone help me with the following:

For example if the 1st review date was 1/10/2001 (UK date format) and someone chose review frequency of quarterly, I want the next review date to show 1/1/2002, until that date, and then it would show the next review date of 1/4/2002.

I know how to add certain numbers of months to dates, but can't get my head round the bit where the review date stays the same until that date is reached, then rolls over to the next date. Can anyone help - PLEASE!!!

Hi Tom,

If you simply want to set a single next review date, the math is pretty simple. For quarterly ( in U.S. format)???

code:


= Date(Month(InitialReviewDate)+3, 1, Year(InitialReviewDate))

For perpetual updates to NextReviewDate where InitialReviewDate never changes it's a bit more complex (again quarterly, U.S. Format)???

code:


= Date(

Month(Status(CurrentDate)) + 3 - Mod( (Month(Status(CurrentDate)) - Month(InitialReviewDate)) ,3),

1,

Year(Status(CurrentDate))

)

Hopefully you can extrapolate the above for annual, semi-annual, and monthly frequencies. It is possible to combine all frequencies in the above formula without adding If() or Case(), but I'll leave that as an excercise for now.

Good luck,

  • Author

That has worked a treat!!

Thanks

  • 5 weeks later...
  • Author

I have altered the second calculation so that it is now as follows:

quote:

Date( Month(Status( CurrentDate)) + ReviewFreqNo - Mod( (Month(Status(CurrentDate) ) - Month(FirstReviewDate)) , ReviewFreqNo) , 1 , Year(Status(CurrentDate))))

Where ReviewFreqNo is a calculated field and equals the following dependant upon which review frequency a user chooses:

  • Monthly = 1
    Quarterly = 3
    HalfYearly = 6
    Annually = 12

Can you try and see why this calculation isn't working

ie. FirstReviewDate = 1/12/2000

ReviewFrequency = Annually (Therefore ReviewFreqNo = 12)

BUT Next review Date = 1/12/2003 not 2002

I'm sure it used to work properly prior to the New Year. Do you think that it could have something to do with the Year Change??

Thanks

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.