Where \(S\) stands for storage volume, \(t\) the timestep used for the calculations, \(Q_{\text{in}}\) is the inflow discharge,\(Q_{\text{out}}\) is the outflow discharge and the subscripts 1 and 2 represent different times (t ). The water level at each time step is calculated using the following equation.