The addWorkingDays function adds a given number of working days (excluding weekends) to a date attribute.
The date attribute we want to add working days to. The date parameter is mandatory.
The number of working days to add to the chosen date attribute. The nday parameter is mandatory.
The following example uses the Bike sales dataset.
In this example, we want to add five working days to the Date attribute.
We type the following formula in the addwd attribute:
and the attribute will be filled with the Date attribute’s values postponed by five working days, which might be more than five days, as weekends are excluded by the function and it considers only working days, not calendar days.
The results are as follows:
and so on.