You can put this solution on YOUR website! How can you find area for complex rectangles or squares . ( 4th grade leval )
-----------
If by complex you mean irregular, it depends on what info you're given.
If you're given the side lengths, split it up into triangles.
If you're given the coordinates of the vertices, there's another method.