He basically wants to know

1. how much time is spent between reverting to mails
2. if there is no revert, how long has it been since the mail was received

Both the above should consider that the work shift is 9AM to 6PM, and weekdays and any other holidays should be excluded

That's It!

The solution has been provided to OP, and it has been accepted.