Excel has the WORKDAY() function that calculates the next working day given a number of days including holidays.
I've been trying to do an equivalent efficient function in MySQL but dealing with the exceptions was too much and I'm stuck with this. Have anybody found an efficient solution for this?
The Excel WORKDAY Function
WORKDAY(start_date, day_count [,holiday_list])
This works like start_date + INTERVAL day_count DAY except that it only includes workdays. Workdays are defined as non-weekend non-holiday days. Weekends here are Sa and Su.
WORKDAY.INTL(start_date, day_count [,weekend [,holiday_list]])
Is the same except weekend is a code identifying which days of the week constitute the weekend.