I\'m trying to add n (integer) working days to a given date, the date addition has to avoid the holidays and weekends (it\'s not included in the working days)
similar to @omz solution but recursively:
def add_days_skipping_weekends(start_date, days): if not days: return start_date start_date += timedelta(days=1) if start_date.weekday() < 5: days -= 1 return add_days_skipping_weekends(start_date, days)