Can we apply sandwich rule for leaves?

Yes, You can apply sandwich rule by enabling the policy “Apply sandwich rule” from the Web Dashboard.
Go to Leaves, Setup Leaves > Manage Leave Policies > Add/Edit policy and scroll down to enable “Apply sandwich rule” policy

 

Step 1:

 

 

Step 2:

 

 

Step 3: