Sigh....copying and pasting
random code without understanding it is a poor idea.
When the service starts, read the date and time, calculate the difference between that time and the current time, and set a timer to expire after that many milliseconds.