This function is used when a task should be woken up at most at a given date. This will be used with rate shapers.