When Agent will be Out Of the Office (OOO) At the end of his working day should set the status to "Unavailable".
When Agent is coming back status should be set to "By Schedule"
Note: You don't net change status each time when you finish your shift, only for vacation or sick leaves, when you will be OOO.