I think it possible base on your answer. I define workshift with Monday - Friday 4.29 pm - 4.30 pm and delay time of 2 minutes for violation event. It works in case which open time before 4.29 pm but in case which open time after 4.29 pm the violation time is +2 days.
I have idea to use macro condition. If open time > 4.29 pm true, set delay time of 1 minute and else, set delay time of 2 minutes.
How to define macro for check open time > 4.29 pm?
Sorry for my English language is not well.
Thank you.