Perimeter and Width Calculation