Using the divergence theorem,
In the divergence theorem, however, is a closed surface. So, we have to subtract where is the bottom surface. However this integral is zero because the two vectors in the dot product are perpendicular.
(Your solution erroneously assumes for the bottom surface, whereas actually . So, the volume is erroneously calculated as and so .)