What is the best way to calculate the rate of flow?