calculate area of a box - Search