transit time calculation assumes 90 degrees if i is nan