Time limit on for(int loop

This passes without errors. Is it right?

I int started; and then this code.

unsigned long started = millis();
  for(int i = 0; ((i < mixer) && (millis() - started <=600000));i += diming++)