while business_days_to_add > 0:
    current_date += datetime.timedelta(days=1)
weekday = current_date.weekday()
if weekday >= 5:
    continue
if current_date in holidays:
    continue
business_days_to_add -= 1
return current_date
Holidays = [datetime.datetime(2012, 10, 3), datetime.datetime(2012, 10, 4)]
print(date_by_adding_business_days(datetime.datetime(2012, 10, 2), 10, Holidays
    ))
Add n business days to a given date ignoring holidays and weekends in python