Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Calculate time difference considering weekends and working hours

$
0
0

I hope someone here can help me.I need to calculate the time difference from incoming emails to replies to the emails. So the response time should be determined. For this I need to subtract the weekends that fall between the arrival and response of the emails. In addition, the daily working time (7 am - 3 pm) must be taken into account.

Example:
Arrival of the email: 02/10/2013 3:45 pm
Answering the email: 02/13/2013 10:45 am
Response time: 3:45 hours

Since the email arrived after 3pm, it will not be processed until the next business day. This starts at 7am, so the time is calculated from 7am to 10:45am.

The arrival date is in field B, the arrival time in field C.The response date is in field D and the response time is in field E. The response time is to be output in field F.

Can someone help me with the solution?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>