By law, the most this can be is three years. Typically, if you leave your employer before you are fully vested, you will forfeit all or a portion of the employer-provided contributions to your account.