How long did the solar system take to form, beginning with the nebular cloud?
It took a few tens of millions of years for a protoplanetary disk with rock and ice particles to form. Rocky planetesimals gathered into terrestrial planets over another few hundred million years, and several hundred million years after that jovian plannets were forming. After yet several more hundred million years, the young Sun’s wind blew away the rest of the gas and dust. Overall the process took some reasonable fraction of a billion years or so.