If the electric flux entering and leaving an enclosed surface respectively is ϕ1 and ϕ2, then the electric charge inside the surface will be
ϕ1+ϕ2εo
ϕ2-ϕ1εo
ϕ1+ϕ2/εo
ϕ2-ϕ1/εo
ϕnet=1εo×Qenc⇒Qenc=ϕ2−ϕ1ε0