how do i replace delay with millis in this code

yes . i saw the code but couldnt understand