Area of a rectangle on a grid