The equation

Tee shape section properties

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

Suppose that the moment of inertia of this area is to be computed about some other axis, one that is parallel to the area's centroidal axis c.

Denote the perpendicular distance between the two axes as d.

Here is Canvas object wihch demonstrate the problem.