Hi all, I'm working on a project to calculate the date an incoming support ticket should be reviewed by. I am given a set of dates that contain the day the support ticket is requested.
From there I can calculate the day of the week this ticket was requested and the expected review date of the ticket (review date = request date +1). However, I need to apply the logic that if a ticket is requested on a friday or saturday then the expected review date should be the following monday rather than a saturday or sunday. Additionally, if the expected date is a holiday, then it should be adjusted to the next day that is not a holiday (I am provided a list of holiday dates).
I'm able to calculate the day of the week for the requested date and expected date, but I'm stuck on how to adjust the expected date if it lands on the weekend or holiday. Any advice or guidance would be appreciated. Thank you!