How to set up Do Not Disturb mode to turn on automatically on Android

How to set up Do Not Disturb mode to turn on automatically on Android

It can be annoying when you sit down to concentrate on something and your smartphone is constantly pinging with notifications. Fortunately, Do Not Disturb mode can prevent distractions. But did you know you can set up rules to automatically trigger that feature at certain times of the day?