add extra time calculation