Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Input and output parameters

Parameter nameDirectionValidMeaning
StartDateInputAny dateThe date you want to start counting from
NumberOfWorkingDaysInputA number >=0 and <=100The number of working days that you want to add to the StartDate
EndDateOutput-The date that is X NumberOfWorkingDays in the future

Limitations in use

This function iterates through each date in the future until it finds a date which is the correct number of working days distanced. This means that it takes longer to compute the further away the date is. As most use cases concern numbers <=20, this should not be a problem. We want to discourage the use above 100 days due to performance reasons.

...

It is no problem to add dates which are also on a non-working week day. By default, all vacation days of the second half of 2018, and of complete 2019 are added, and you extend this to the future as far as needed.

Other extensions

You could theoretically extend this function to also take vacations of specific employees into account. You would then need to add a new parameter with a user ID, and then add an additional check to the CheckDateValid flow. You would need to connect to a system which stores vacation days, and then add a similar check on a new condition node.

Image Added