Here's our calculator for the perimeter of a rectangle. Make sure you input the same units for both of the boxes. Don't put meters in one box then centimeters in another.
The formula is:
(length+width)*2