I just can't figure out how to use mills.
Using millis() for timing. A beginners guide
Don't forget that you can have two (or more) periods being timed inside loop() using millis(). Just remember to use different variables apart from the one for current time.