Question 141056
Look here --> http://mathforum.org/dr.math/faq/formulas/faq.sphere.html

And see the section on spherical cap. I think that is what you are asking