Quran 41:9-12 – 6 Days For Creation Of Earth
Based on this verse you are implying that, heavens were created after earth. Process of formation of earth and heavens started together. Refer to Umer sb response in this thread Discussion 48106 We can infer that 4 days (Not our solar days) were used to optimize earth surface to sustain life till day of judgment.