Perimeter formula for rectangles