Is there an equation which can calculate the gravity of the planets and their moons in our solar system simultaneously? Does the gravity of the planets affect the orbit of other planets in our solar system?