the code can work.
tip: If millis - now is negative, the task will be executed immediately. Make sure to handle this according to your business logic.
millis - now