Implemented time calculation for entire week