Since your code is using a subtraction, it will work correctly across the millis() rollover without modification.
When doesn't arithmetic work across the millis() rollover?
Since your code is using a subtraction, it will work correctly across the millis() rollover without modification.
When doesn't arithmetic work across the millis() rollover?