Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The First Working Day by yoichi
import datetime
def vacation(date, days):
dt = datetime.datetime.strptime(date, '%Y-%m-%d')
dt += datetime.timedelta(days)
while dt.weekday() > 4:
dt += datetime.timedelta(1)
return dt.strftime('%Y-%m-%d')
Oct. 25, 2018