Compute dwell time and flight time