Dear Mr.Sylvester
The calculation has to be made till the date of his dismissal. If you take into account his date of retirement, which I presume, is subsequent to his date of dismissal, you would be paying gratuity for a period during which he was not in your employmemnt.
With regards