> Why would you take this part metaphorically, but insist that God have literally created the world in 7 days?
There are a few schools of thought about this, but three popular ones are:
1. The creation story is a different genre. It's a poem, not a historical account, so you can think the Bible is absolutely true while allowing for poetic license in these chapters. The genre shifts back to history later in Genesis (with various opinions on where that is, some saying one creation passage of Genesis is poetic, the other historical).
2. The word "day" is mistranslated. It's better translated as "era". As in "back in the day". So Genesis is describing seven prehistoric eras.
3. Since the passage also refers to sunsets and sunrises, it's literally a rotation of the Earth. But God is omnipotent, so it's fine.
...and there are a few other competing thoughts. Do you have a scientific problem with any of the ones I listed? Other objections are fine, too, but I'm mostly trying to show how science and biblical literalism are fine together.
The usual objections to #3 involve carbon dating, fossil records, etc., but none of them really refute the creation story as much as describe the world that already exists. Why couldn't God have created pre-decayed isotopes and a fossil record? That's a metaphysical and/or theological question, not a scientific one. So we don't really have a scientific conflict here.
In my mind, God could have easily tweaked input parameters (to, say, make sure Earth has oceans and continents) and "JIT recompiled" the universe like so much source code. Why didn't Genesis describe the creation process more specifically? That's, again, a theological question, not a scientific one. But, practically, how would you describe, say, writing software, to a literate ancient Egyptian Jew (i.e, Moses)?