With minor modifications, you will be able to add up to 5 days to any date skipping weekends as long as you increase or reduce the count in [3,4,5] for every unit added or deducted respectively from the number of days that you would like to skip and also increase or reduce the values of the number 5 by an unit. For instance, adding 4 days instead of 3 would suppose adding a unit to 3 and 5 (4 and 6 after the change) and adding another number to the number list (it would become [2,3,4,5]). |