"Elapsed time t" is the percentage of the total drain time.
Blue = current water level / Yellow arrow at the bottom = outflow from the orifice
Horizontal axis = elapsed time t / Vertical axis = water level h (yellow dot = current time)
Treats the unsteady outflow when a tank of cross-section A drains through an orifice of area a.
Outflow velocity and flow rate from Torricelli's law (Cd is the discharge coefficient):
$$v = C_d \sqrt{2gh}, \qquad Q = a\,v = C_d\,a\,\sqrt{2gh}$$Governing equation for the water level (conservation of mass):
$$A\,\frac{dh}{dt} = -Q = -C_d\,a\,\sqrt{2gh}$$Solving this, the level decreases as a quadratic function of time:
$$h(t) = \left(\sqrt{h_0} - \frac{C_d\,a}{A}\sqrt{\frac{g}{2}}\;t\right)^{2}$$The drain time is found by setting h(t) = 0 in the equation above:
$$t_{empty} = \frac{A}{C_d\,a}\sqrt{\frac{2h_0}{g}}$$