How long did it take for the comets to form?