I have automatic tasks in the system when the status of the client changes, a task is automatically set up that has the value “run in N hours,” for example, in 480 minutes.
Well, an example of the time when the status was set: 2015-04-24 16:51:06
You need by the time 2015-04-24 16:51:06 round up to 2015-04-24 16:50:00 or if 2015-04-24 16:53:06 then in 2015-04-24 16:55:00
Since the task check step is 5 minutes.
And i.e. by 2015-04-24 16:55:00 already add 480 minutes
Help solve the problem