I am building a SLA KPI. The SLA is based on ticket type and priority, each of these have a due date.
The thing is, I only have the field created_at, I don't have this due date, so I need to calculate it, and as mentioned above, use the params priority and type to define the right date.
But my real problem is, how to calculate it on PHP, considering operation days and hours, monday to friday, 8:00 to 18:00 For example.
The ticket was created at 2019-06-04 08:00:00
and its deadline is 16 hours.
So it would be, 2019-06-06 08:00:00