It can be solved with the information in Genesis.
The very first sentence is, "In the beginning, God created the heavens and the earth. Period.
There are no 24 hour days yet. That whole process can not be be calculated in earth time, because while there was an earth, there was no earth time yet, or time spent on making the earth habitable for humans yet. That comes later.
So lets put that first sentence in scientific terms.
We live in a big galaxy. And it spins at an incredible 490,000 miles an hour. And even at that speed it takes 200 million years just to make one rotation.
And
then He created a billion more of them. In fact, science says that there are more stars than all of the grains of sand on every beach on earth. How ever long it took him to finish all of that, that is how old the earth is.
^
God created all of that in eternal time, which we have no way of calculating. And
then he He turned His concentration on our home, earth. The power source of God, The Holy Spirit, moved when God said to and that movement created light. But only when God separated the light from the darkness did night and day occur. Everything up to that point was done in eternal time, not Rolex time.
In fact, our concept of time doesn't occur until Genesis 1:14
Genesis 1:14-19
14 And God said, “Let there be lights in the vault of the sky to separate the day from the night, and let them serve as signs to mark sacred times, and days and years, 15 and let them be lights in the vault of the sky to give light on the earth.” And it was so. 16 God made two great lights—the greater light to govern the day and the lesser light to govern the night. He also made the stars. 17 God set them in the vault of the sky to give light on the earth, 18 to govern the day and the night, and to separate light from darkness. And God saw that it was good. 19 And there was evening, and there was morning—the fourth day
We try to measure the age of the earth by the timeline that wasn't even established until the fourth day. We can't. Earth was created before there was a delineation of time.
How old is earth? We need to look at God's watch for that answer, not Timex.