count travel time only if non-zero flow

since right now travel time is nan