Calculating pump drive power