How to implement casual leave type with few conditions

Hi, I want to implement casual leave type in our organization and below are the conditions. How can I implement this?

Note: Total Leaves should be prorated based on date of joining.

Leave Type Total Leaves Allocation per month (Date of Join) Allowed per month Max Carry forward Elapsed on
CL 12 1 2 CL Max 12 31-Dec-24

Your kind support will be appreciated.