We're having with one holiday schedule table. We have to pass a date parameter, if the date matches with holiday schedule the date should display previous date, if that also matches then date should be previous of previous date. Please find below example
If "Today" is a holiday date then display yesterday, if yesterday was also a holiday then previous date should be displayed and so on.