Finishing adding the start time element in calcualting the duration for
scheduling