Area of a square or Cost calculation