You can calculate the area of a rectangle by using this formule: a*b You can calculate the diagonal of the rectangle by using Pythagoras' theorem: a*a+b*b=diagonal*diagonal 100% code by me