Calculation of the 30% compensation is based on the agreed gross salary while different laws are applied for pension premiums. Every other compensations (leave allowances, bonus etc.) fall under the 30% ruling as long as they are ruled as severance fees.
