Average rate of speed calculation