Max speed calculation ignoring extreemes in distance and speed