Hello, you can definitely achieve this by using C# expression to calculate the End Date.
Assuming you have all 3 as Var (2 date type and 1 num), in an Update Variable step the End Date var will have this value
To add any number of days to a provided date
//Get the variable containing your date/time, parse it, and add or subtract days indicated (by indicating a positive or negative number)
DateTime.Parse(GetVariableValue("StartDate")).AddDays(GetVariableValue("NoOfDays"))
Remember: the expression above does not take into account just business working days. in that case i would use this expression to calculate it:
//Create a new variable called 'current', and set it to the system dateTime for today
var current = System.DateTime.Today;
//Create a variable called 'daysToAdd' and load it with the number from your workflow variable
var daysToAdd = Int32.Parse(GetVariableValue("YOUR_VARIABLE").ToString());
//Add days until the number of indicated days is reached
for (var i = 0; i < daysToAdd; i++) {
if (current.DayOfWeek != DayOfWeek.Friday) {
current = current.AddDays(1);
}
else {
current = current.AddDays(3);
}
}
return current;
Back to Docusign.com

