1-2 months, by law after 1 month there has to be parliament meeting that gives majority support to government, if it don’t give support then another party gets to make government, after that another election.
It depends on the situation, usually the coalition potential is known in advance so it is usually quick.