The diagonal of a rectangle creates right triangles where the diagonal is the hypotenuse and the length and width of the rectangle are the legs of the triangle. Use Pythagoras to calculate the length of the rectangle:
The area is then the length times the width, so putting it all into one calculation: