Automations can factor in return dates.
This example shows the following rule: If a user is still out of the office for more than one day at the time of issue assignment, the issue can be reassigned to a specific user or to a user in a group. The new assignee will be notified of the reason with via a comment on the issue.
Configuration of the rule
...