what determines the length of a year on a planet@