Electric Flux
Consider a horizontal surface such as the one shown below with an upward normal $d\overrightarrow{A}$. Let $\overrightarrow{E}$ denote an electric field that makes an angle $\theta $ with the horizontal surface and let $E_{\parallel }$ and $E_{\bot }$ denotes its parallel and perpendicular components respectively.
If the electric field $\overrightarrow{E}$ is constant in magnitude and direction over the area $A$, the total electric flux through the surface is equal to
\boxed{{\mathrm{\Phi }}_E=EA{\mathrm{cos} \left(\theta \right)\ }\ \ \ \ \ \ \left(N\cdot m^2/C\right)}
Note: this is often written as a dot product as follows
{{\mathrm{\Phi }}_E=\overrightarrow{E}\cdot \overrightarrow{A}}
Sign of the electric flux:
1. The electric field is everywhere perpendicular to the surface: no field lines traverse the surface and the net flux is zero.
2. The number of field lines that enter the closed surface is equal to the number of field lines that exit the surface. The net flux is then zero even though the gravitational field does traverse the closed surface.