Question 236674
You can find the needed formula to solve your question at:

http://mathworld.wolfram.com/SquarePyramid.html

Let me know if the link provided help or not.