Predicting elimination of evolving virus variants