As a company can remain dormant indefinitely so long as it meets certain requirements, you could set the company up a few months or even years before starting to trade.