Android Marshmallow has a feature for creating rules to enable Do Not Disturb, I can't find out how to do this on my S7, has this been excluded from Touchwiz?
In Marshmallow - Settings > Sound & notification > Do not disturb > Automatic rules
In Marshmallow - Settings > Sound & notification > Do not disturb > Automatic rules