Calculating Mass Flow Equation