Formula used here
The full award is half a month of wage for each of the first five years, then one month of wage for each year after that. A part of a year is counted in proportion (months ÷ 12).
If you resign, this page applies the usual fractions: nothing under 2 years, one third from 2 years up to 5, two thirds after 5 years and before 10, and the full award from 10 years. If the employer ends the contract, it shows the full award.
Real cases also depend on the wage definition in the contract, unlimited versus other contract types, and dismissals for cause. Confirm the amount with your contract and the Ministry of Human Resources before you rely on it.