Somewhere around 13 or 14 billion years ago our universe was made or made it self that much we do know or at least think we know. So thats a fair length of time for complex elements and even more complex lifeforms.

I just dug up some old science books these figures coulds be out of date but the figures quoted are that our solar system by mass terms is made of around

70.13% Hydrogen
27.87% Helium
0.91% Oxygen

Straight away water can be formed which is a building block of our lifecycle water has some very important features.

1 As a liquid it can protect it from destructive ultraviolet radiation.
2 Waters ability to exist as both a gas, solid and a liquid allow it to spread all over the planet.
3 The ability of ice to float also means our oceans don't freeze solid very important.

Taking undersea vents and solar energy into account and a 4.5 billion year old earth its plenty time for me to be here typing on a computer.