What is the best way to implement variable festival holidays

Hi,

By default, our company provides 5 festival holidays to every employee. We will give list of festival holidays and employee has to select their desired festivals.

Also, for the first year it is prorated based on date of joining. Below is the logic

Date Interval No of Festival Holidays
01-01-2024 To 13-03-2024 5
14-03-2024 To 25-05-2024 4
26-05-2024 To 06-08-2024 3
07-08-2024 To 18-10-2024 2
19-10-2024 To 31-12-2024 1

How can I implement this in Frappe HR? Detailed flow would be appreciated.