Just by feeling - for each level there is a certain obligatory minimum number of waves, after which the purge duration is random.