compute interval with greatest average number of steps