With projects like this, you should expect to write the code for yourself, not 'find' it.
If you want to carry out timed actions and also control other things at the same time, you should use a non-blocking approach. The blink without delay example sketch demonstrates how to use that approach.