Formula For Finding Diameter