Scientists first make observations that raise a particular question. In order to explain the observed phenomenon, they develop a number of possible explanations, or hypotheses. This is the inductive part of science, observing and constructing plausible arguments for why an event occurred.
As indicated earlier, the Bible does not fix the age of the earth, contrary to the claims of Answers in Genesis. Historically, their claim comes from the work of James Ussher, Bishop in the Church of Ireland, from 1625 to 1656.
The ages measured for Earth's oldest rocks and oldest crystals show that the Earth is at least 4.3 billion years in age but do not reveal the exact age of Earth's formation. The best age for the Earth (4.54 Ga) is based on old, presumed single-stage leads coupled with the Pb ratios in troilite from iron meteorites, specifically the Canyon Diablo meteorite.