Setting Out of Office Replies
You can do it in 2 ways: Outlook or Teams.
Outlook
Go to FILE then AUTOMATIC REPLIES (OUT OF OFFICE)
Then you can add your message and timeframe etc.
Teams
Go to Setting by clicking on the three dots to the left of your photo...
Then scroll down to the bottom of the pop up
Add your text etc and hit SAVE.