add Flow Calculations

add Flow Calculations