I think you may try this-; round(daysBetween($DayOffRequest/StartDate, $DayOffRequest/EndDate)) + 1 - (round(daysBetween($DayOffRequest/StartDate, $DayOffRequest/EndDate) mod 7) div 5) * 2round(daysBetween($DayOffRequest/StartDate, $DayOffRequest/EndDate)) + 1 - (round(daysBetween($DayOffRequest/StartDate, $DayOffRequest/EndDate) mod 7) div 5) * 2
Isn’t there a java action in the Appronto common module which does that?
As Lukas says, use the java action WorkdaysBetween.java from the Appronto Common module. If you’d rather implement this in a microflow, you will have to respect the day of week of the start date. You can get some ideas about implementation here: