Here is Canvas object wihch demonstrate the problem.

The moment of inertia of the box beam about the z centroidal axis can be computed as: