Gratuity is a benefit scheme given from employer to employee that has been working for him for a long time period. It is not that complicated term that it might sound to most of people. I also learnt about gratuity rules and all of basics online and will suggest you too to read it.