Allowing a fixed number of days before a particular leave type before it can be applied for

Hi everyone, We need a solution in which an employee can only be allowed to apply for a specific type of Leave for example Planned / Privileged leave before a fixed number of days.