groovy to calculate due date based on working time
How to calculate due date of a task based on working time? for example the shift of an agent is 9:00 AM to 5:00 PM. A task has lets say to be completed in 4 hours. Now if it gets assigned to the agent at 4:00 PM, the agent has 1 hour left for the day. So the due date should show Next day 12:00 PM. How can we achieve this with groovy? any suggestion would be great help.
0