Add Flow Calculations

Add Flow Calculations