calculation of the formation of the Moon