Modified rank balancer to use time instead of number of particles