The discharge decreases with change in height of water with the passage of time.
$$Q=-A\frac{dh}{dt} $$
$$-A\frac{dh}{dt}=C_da\sqrt{2gH}$$
$$dt=-\frac{A}{C_da\sqrt{2gH}}dh $$
Integrate H from \(H_i\) to \(H_f\) and integrate t from 0 to t, then solve for time t, which is the time required for the tank to drain to the orifice level: