Calculates speed of sheep passing