Formula Of Getting The Diameter