Calculation of planet orbit