This calculation assumes that the cross-sectional area of the tank is so large compared to the cross-sectional area of the pipe that if you divide the area of the pipe by the area of the tank, the ratio will be close to zero.

This calculation assumes there is no loss of flow rate due to friction, and that the flow rate is fast enough to be considered turbulent.