This new ISTA application automatically calculates the minimum number of primary samples to be taken (including for heterogeneity testing) of all kinds of seeds, all sizes and types of containers and packaging, as well as the seed stream. Have a look here