Yes, in most cases you are entitled to a transition allowance if you leave employment after two years of illness. By law, this compensation is intended to provide financial compensation for the loss of your job and support you in moving to other work. The amount is calculated based on your gross monthly salary, including fixed salary components, and the number of years of service. Only in exceptional situations, such as in the case of seriously culpable actions on your part, can the compensation be cancelled.