Area of rectangle and length calculation