For ordinary retirement, superannuation or resignation, at least five years of continuous service is generally required. Test that condition independently before converting service to Y. An employee with 4 years and 11 months does not ordinarily become eligible merely because the gratuity rounding function would map the period to five recognised years.
The five-year requirement is removed for death, disablement, expiration of fixed-term employment and other notified events, while ministry guidance gives fixed-term employees a one-year contractual threshold and excludes an eleven-month contract. Continuous service is also broader than uninterrupted attendance. Statutorily recognised interruptions can include sickness, accident, leave, lay-off, strike, lock-out or cessation of work not caused by the employee, subject to the Code.
A disputed continuity question cannot be settled by arithmetic alone. The variable W must reflect statutory monthly wages. Basic pay, dearness allowance and retaining allowance are expressly included.
Listed exclusions may be partly added back when they exceed 50% of total remuneration, and remuneration in kind is addressed within a statutory 15% limit. This makes W a classification result, not merely a payslip label. Performance incentives, ESOPs and genuine reimbursements are identified in ministry guidance as outside wages, though difficult classifications need professional review.
The output has another discontinuity at the applicable ceiling. ₹20,00,000 is the established general reference, but the Code makes the ceiling notification-driven; government-service rules and beneficial contracts may differ. Forfeiture is another legal boundary involving narrowly specified circumstances, not a user-selectable arithmetic adjustment. Tax exemption constitutes a separate piecewise calculation and should not be inferred from gratuity payable.