DueDate Calculator is an Enfocus Switch script that calculates a due date in working hours.
Starting from the moment the job arrives, it adds a delay while skipping non-working days and French public holidays, then stores the due date on the job.
When the job comes back through the element, DueDate Calculator compares the current time with that due date:
it routes the job to Success once it is reached, or to Warning while it is not yet reached.
You choose the working days and hours (Monday to Friday, 08:00 to 18:00 by default) and the delay in hours.
The result is stored in two job private data keys, which can be reused anywhere in the flow.
In a nutshell
DueDate Calculator turns “in 6 working hours” into a precise date and time, then tells you whether it has been reached.