Fix for calculating aggregate end time.