Earned leaves with +1 additional allocated day

Hello friends,
I am trying to implement an automatic leave allocation in which employees earn a certain number of days and increment by one in each year.
For example, Employees will earn 22 days in each year, but this increases until it reaches a limit, for instance, 35 days per period.

Is this achievable?
Thanks

Is anyone here suggesting how I can achieve what I am looking for?
Thanks