<p>I got it.
Thank you all!</p>
<p>Just wanna make sure about something.If the numerator has the coefficient 2 then you will get the average of the whole trip,but if the coefficient is 1,then you will get the average of half of the trip.</p>
<p>Right? </p>