The moment of inertia for a rectangle

The equation

gives the moment of inertia of a rectangle about its own centroidal axis (axis c in the sketch).

Here is Canvas object wihch demonstrate the problem.