Access Google Calendar that can be found in the box of dots located in the upper right corner of your gmail.
Proceed to click into Google Calendar & once accessed click the create tab right underneath the calendar logo.
When you've accessed create click "Out Of Office" and then you can set the duration of your time out of office and etc.