Let at any moment of time, water level in the vessel be H then speed of flow of water through the orifice, at the moment will be
v=√2gH (1)
In the time interval dt, the volume of water ejected through orifice,
dV=svdt (2)
On the other hand, the volume of water in the vessel at time t equals
V=SH (3)
Differentiating (3) with respect to time,
dVdt=SdHdt or dV=SdH (4)
Equations (2) and (4)
SdH=svdt or dt=SsdH√2gH, from (2)
Integrating, ∫t0dt=Ss√2h∫0hdh√H
Thus, t=Ss√2hg