To calculate the distance of a geostationary satellite from Earth's surface, one must ensure that the centripetal acceleration matches gravitational force. This involves determining the orbital speed required for a satellite to complete one orbit every 24 hours, factoring in the sidereal day. The relationship between gravitational force and centripetal force can be expressed using the equation G(Mm/r^2) = m(ω^2r), where G is the gravitational constant, M is Earth's mass, and ω is the satellite's angular velocity. By substituting the known angular velocity of Earth into this equation, one can solve for r, the distance from Earth's center, and subtract Earth's radius to find the satellite's height above the surface. Understanding these calculations is essential for positioning satellites in geostationary orbits.