The water balance for dams or floodgates considers inflow, outflow, precipitation, evapotranspiration, and seepage. The equation is expressed as follows: