I have a sheet that notifies people when they need to review a document based on when it reaches its expiration date. The idea is that people are sent an email notification 90 days, 60/30, and 7 days before it expires so they can take action.
I have the date the document expires in one column and in another column, I have the days count down.
When the day countdown hits 90 for example, it triggers the status cell to change to 90 days, and that triggers an email.
The email would say the document expires in 90/60/30 or 7 days and the email pulls the numbers of days until it expires from the column that shows the days until expiration.
I tried various options, but the email would always go out the day after, so the email would say the document expires in 89 days or 29 days etc. The only fix I could find was to change the trigger to happen on the 91st day or 31st day. This solved the issue but seems wrong, and I want to understand why so I can troubleshoot in the future.
Would love some insight.