Calculate constant speed.