A contract workman has been working in the organization for the past 15 years, and his last working day was on 31.01.2017. Due to his disease (cancer), he was unable to work, but he received ESI (90% of wages) from 01.02.2017 to 27.11.2018. For the calculation of gratuity, which date should be taken - his last working date or his death date?