Effective potential and Kepler's 3rd law