In establishing an economical testing program the costs of routine analytical tests must be weighed against losses due to shipping material which is either above or below stated specifications. A method for obtaining an optimum sampling and testing procedure is described and examples given.