calculating the correct pier diameter