calculation of the formation of Earth