How it is calculated
- Salary for days worked = gross salary × days worked and not yet paid ÷ days in that month.
- Leave encashment = basic + DA ÷ 30 (or 26) × unused earned leave days.
- Notice pay = gross salary ÷ 30 × days of notice short. The employer pays it when it ends the job without full notice. It is recovered when the employee leaves early.
- Gratuity, bonus and other dues are entered as amounts.
- Total dues = salary + leave encashment + notice pay from the employer + gratuity + other dues.
- Total recoveries = notice pay recovered + advances, loans, TDS and other recoveries.
- Net payable = total dues − total recoveries.
This is a worksheet, not a formula from one law. Leave and notice pay follow the appointment letter and the company policy.
The common mistake: working leave encashment out on gross salary. Most policies pay it on basic + DA. The other one is missing gratuity for someone who has just crossed five years.
Worked example
An accounts executive resigns from Demo Traders Pvt Ltd, Visakhapatnam (a made-up company) after five completed years. Gross salary is ₹60,000 a month and basic + DA is ₹30,000. The last working day is the 18th of a 30-day month. There are 12 days of earned leave unused, the notice served is 15 days short, ₹4,500 of expense claims are due and ₹10,000 of a salary advance is unpaid.
| Line | Working | Amount |
|---|---|---|
| Salary for days worked | ₹60,000 × 18 ÷ 30 | ₹36,000 |
| Leave encashment | ₹30,000 ÷ 30 × 12 | ₹12,000 |
| Gratuity | ₹30,000 × 15 ÷ 26 × 5 | ₹86,538 |
| Other dues | expense claims | ₹4,500 |
| Total dues | ₹36,000 + ₹12,000 + ₹86,538 + ₹4,500 | ₹1,39,038 |
| Notice pay recovered | ₹60,000 ÷ 30 × 15 | ₹30,000 |
| Other recoveries | salary advance | ₹10,000 |
| Total recoveries | ₹30,000 + ₹10,000 | ₹40,000 |
| Net payable | ₹1,39,038 − ₹40,000 | ₹99,038 |
TDS is left out of this example. Enter it with the other recoveries.
When each part is due
| Part | Due | Law |
|---|---|---|
| Wages | Within two working days of removal, dismissal, retrenchment or resignation | Code on Wages 2019, section 17(2) |
| Gratuity | Within 30 days of becoming payable | Code on Social Security 2020, Chapter V |
| Statutory bonus | Within eight months of the close of the accounting year | Code on Wages 2019, section 39 |
Both Codes are in force from 21 Nov 2025. Section 17(3) lets the government set another time limit for wages. Source: section 17 of the Code on Wages 2019 and the notes listed below. Facts checked 3 Dec 2026.
Notes and edge cases
- The two-day rule is for wages. Gratuity and bonus have their own dates. For other lines, check the contract and whether the item counts as wages.
- Wages after 21 Nov 2025. Under the labour codes, allowances above half of total pay count as wages. Where that raised the wages base, it raises leave encashment and gratuity too.
- Gratuity. Work it out in the gratuity calculator. A part of a year over six months counts as a full year.
- Tax on leave encashment. The leave encashment calculator gives the tax-free part.
- Bonus. If statutory bonus for the year is due, work it out in the bonus calculator and enter it with the other dues.
- TDS. The last month’s TDS is worked out on the whole year’s income. See the TDS on salary calculator.
- Days in the month. Some employers divide by the calendar days of the month and some by a fixed 30. Enter the one your payroll uses.
In MyRecords
HR in MyRecords has an exit checklist and a full and final statement for an employee who leaves. Leave encashment requests wait in Approvals with the other HR requests, and additional salary and arrears go into the pay run.















