Disable notifications from certain apps during certain hours/days?

Hello,

I am wondering if i can block notifications from outlook and teams during the time im not at work, what happens is i get an email late at night and i get worried when going to sleep, so i sleep bad. But i like that i can see my notifications during work.

I know focus is an option, but i think there must be a better way.