Square
Time of emptying a square, rectangular or circular tank through an orifice at its bottom
Consider a square, rectangular or circular tank of uniform cross-sectional area, containing some liquid and having an orifice at its bottom.

Let,
- A = Surface area of the tank
- $H_{1}$ = Initial height of the liquid
- $H_{2}$ = Final height of the liquid
- a = Area of the orifice
At some instant, let the height of the liquid be h above the orifice. We know that the theoretical velocity of the liquid at this instant, $v = \sqrt {2gh}$
After a small interval of time dt, let the liquid level fall down by the amount dh.
Therefore volume of the liquid that has passed in time dt,
The value of dh is taken as negative, as its value will decrease with the increase in discharge.
We know that the volume of liquid that has passed through the orifice in time dt,
$dq$ = Coefficient of discharge $\times$ Area $\times$ Theoretical velocity $\times$ Time
Equating equations (1) and (2)
$-A.dh = C_{d}.a.\sqrt {2gh}.dt$
Now the total time T required to bring the liquid level from $H_{1}$ to $H_{2}$ may be found out by integrating the equation (3) between the limits $H_{1}$ to $H_{2}$ i.e.,
$T = \int_{H_{1}}^{H_{2}} \frac{-A(h^{-\frac{1}{2}}).dh}{C_{d}.a.\sqrt {2g}}$
$\;\;\;\;= \frac{-A}{C_{d}.a.\sqrt {2g}}\int_{H_{1}}^{H_{2}}h^{-\frac{1}{2}}.dh$
$\;\;\;\;= \frac{-2A}{C_{d}.a.\sqrt {2g}}[\sqrt H_{2} - \sqrt H_{1}]$
Taking minus out from the bracket (as $H_{1}$ is greater than $H_{2}$)
$T = \frac{2A(\sqrt H_{1}-\sqrt H_{2})}{C_{d}.a.\sqrt {2g}}$
If the tank is to be completely emptied, then putting $H_{2}$ = 0 in this equation, we get $T = \frac{2A\sqrt H_{1}}{C_{d}.a.\sqrt {2g}}$