Calculate bound, square of rectangle