Calculating call duration and end time