I do believe you're right! Just as the total distance attained is the integral of the velocity (the rate of change in the position), so also your total amount attained (drained, in this case) will be the integral of the flow velocity (the rate of change in the amount).