I don't think scripture tells us that God began creating the earth "in the beginning". It does not say when that beginning was. To understand what scripture tells us we need to trace back to the original Hebrew that the first men who heard God spoke in, and what those words meant to them.
Genesis 1: In the beginning God created the heavens and the earth. 2 Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters.
In the beginning our earth was described by the Hebrew word choshek. This word means lifeless, dark, chaotic. It does not tell us there was nothing there when scripture lists the days of creation, but that the earth was dark and forbidding.
When scripture describes the first day of creation, it tells us that “owr” was created. This is a Hebrew word always translated as light, it means enlightenment, joy, life, and good. Physical light was not created until the fourth day. Owr is a Godly light. On this day God created light as we as human think of it.
On the fourth day the light created was called maor, or the plural of that is maorof. This is a name for objects that illuminate. Translators used our word light for both of these very different Hebrew words.
Ancient Hebrew was first written in pictograph, then without vowels.
We know that God is in a dimension different from ours because God is eternal. Time is part of the dimension humans live in, eternity puts God in a different dimension. Scripture tries to explain that dimension to us.
Scientist do not know what God knows about us for God created what scientist try to discover. But often they discover the truth of what we have misread scripture about. That happened about "the four corners of the earth". People said the earth was square, but scientist told them what that scripture meant. I think it is the same with the age of our earth.
I think you are on the right track.
Science keeps us honest by describing the means by which God did the things He did.
The bible is not a technical manual, it is an inspired revelation that God uses to convey spiritual reality. There is no conflict between ‘religion’ and science. Nor is there any reason to be over literal in our interpretation of scripture. It should be remembered that to communicate with mankind, God’s revelation has to be understood by all men over all time. He has to communicate with the uneducated and the highly educated, from the ancient past to the present day. To do this he uses symbolic writing. If you press myth, poetry and apocalyptic texts into service as scientific data, you end up in a web of contradictions.
The Earth is very old and there is no need to deny this. Genesis distils the important details about creation, it is not an orderly account of what or how it happened. Being over defensive of the scripture led to a denial of heliocentricity. The probem was that believers were limited in their thinking and tried to straight jacket their interpretation of scripture to fit their idea of the facts. Such a strategy was misguided and creationism is nothing more than a modern version of the same flawed philosophy.
The scriptures, understood correctly, transcend science, but do not obliterate it.
Christians should delight in science and welcome its discoveries. Christians should be scientists so that they can divide between real science and atheistic philosophies masquerading as science. If christians retreat into creationism, they leave the field open to exploitation by the devil.
Consider Professor Brian Cox, for example. He is a physicist of impressive calibre, but he gets on television and peddles his personal theories and interpretations. This is NOT science, it is philosophy dressed up as science. This is where christians need to join the battle; not in creationism, which is simply a headlong flight from reality.