How to implement sick leave type with few conditions

Hi, I want to implement casual sick 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.

How do we ensure leave balance elapses on year-end?

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

Your kind support will be appreciated.