How to replace two diffrent delay() functions (total of four) with millis()

This code is not mine and it was lot worse. I didn't see that thanks.