how many years for earth to form
From the scientific viewpoint, the Earth would have had to form about 4.54 billion years since the earliest material in the solar system is dated back to about this time period.