Usually, when an employee resigns or retires, the leaves will be calculated in the same manner as salaries. It depends on your company as to how many days per week you work and the calculations thereof. If it is a 5-day week, as is common in many IT sectors, the calculation for a $25,000 salary (for example) will be $25,000/20 x [the number of days worked in the month].
Encashment of leaves
Encashment of leaves in some companies is done based on the basic salary when the earned or privilege leaves exceed 60 (as per the Shops & Establishments Act) or as per the company policy.
An employee who is leaving the company must be cleared of their earned leaves, in addition to other applicable benefits.
Thanks and Regards