According to the Gratuity Act, gratuity is only available after 5 years of operation. If you leave before 5 years of service, you will not be liable for such a gratuity.