Type: Posts; User: Norm
The formula in your post#3 should work.
The x,y are the location of the rectangle. They are not used in computing the perimeter.
Did you have a question?