Diameter Calculation