Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
HOLY BOOLEAN solution in Clear category for The First Working Day by Stensen
from datetime import datetime, timedelta
def vacation(date, dt):
date = datetime.strptime(date, '%Y-%m-%d') + timedelta(dt)
d = date.weekday()
return (date + timedelta((7 - d)*(d > 4))).strftime('%Y-%m-%d')
Oct. 3, 2020