Calculates the area of a rectangle