where M is the mass of the Sun, m is the mass of the planet, G is the gravitational constant, T is the orbital period and a is the elliptical semi-major axis, and AU is the astronomical unit, the average distance from earth to the sun.