Somehow I need calcute the time of the open ticket with regard to working hours & weekends. For example I have opened ticket time 2016-07-28 16:15, working hours is from 08:00 to 17:00. Have anyone ideas how to write this in php code?