Compute the coordinate for rectangle 1