Implemented calculation of completion time