Pyramid base calculations