what factors are used to determine if aql is being met 
to calculate aql you need the lot or batch size the inspection type inspection level and the desired aql there are aql calculators available online if your lot or batch size is 50 000 your inspection type is general your inspection level is 2 and your aql level is 2 5 you would need a sample size of 500 units with only 21 defects anything over that has reached the rejection point 