how do i replace delay with millis in this code

thanks .everything fine now