Calculating the average rate of work of a pump