Retired in February but leave encashed in April. When is the benefit of exemption applicable?

Salary is taxable on a ‘due’ or ‘receipt’ basis, whichever is earlier

Retired in February but leave encashed in April. When is the benefit of exemption applicable?
Salary is taxable on a ‘due’ or ‘receipt’ basis, whichever is earlier