The formula to calculate gratuity is Gratuity = (15 × last drawn salary × working tenure)/30