Hi -
I am working on a workflow that sends out reminder emails that contracts are expiring soon. So, if a contract expires on 10/1/2016 and NotficationDays is set to 90, the initial email reminder will go out on 7/1/2016. This date is calculated using Expiration Date minus NotficationDays = 10/1/2016 - 90 days. A 2nd email reminder is sent on 8/1/2016 (30 days after the initial reminder). This is calculated using the following formula = Expiration Date minus NotficationDays + 30 days (10/1/2016 - 90 days + 30 days). I have all of this working.
Where I need assistance is on how to generalize the formula. Depending on how much work is involved in renewing the contract NotficationDays for a particular contract could be set to 360, 180, 120, 90, 60, or 30 days. I want an initial email to be sent on NotficationDays prior to the contract expiring and then every 30 days following that date, until the contract has expired or the expiration date has been update and this condition for sending email reminders is no longer valid.
Any assistance is greatly appreciated. Please let me know if something is not clear.
Thank you.