Hi,
I’m trying to build a function which calculates an expiration date for a document, within this time the document must be processed by another person.
The background is this: someone creates a new document, which has to be done in e.g. 4 hours. At the time, the document is saved, a field “to be done until” shall be filled with this value.
My problem is: this function should use only the the normal office-time [8-17h].
How can I calculate, if the expiration time is in the office-hours - and if not transfer the rest of the time to the next working day and put this date/time into the field?
Does anyone has an idea?
Thanks,
Thomas Seeb