The transition of worker to formality: evidences from duration analysis