Perimeter, Area, and Cost Calculation