The training period, other than the apprentice period, will be treated as a service period for the purpose of eligibility and calculation of gratuity. In your case, it is presumed that you were not under the Apprentice Scheme as per the Apprentice Act, 1961, as you were covered under the EPF and MP Act. Therefore, the training period will also be added to the length of service for the calculation of gratuity.