Calculate the Number of Required Flows for Semiconductor