Configure macOS Notification Center Banner self-dismiss time
Open your terminal and run this command

defaults write com.apple.notificationcenterui bannerTime SECONDS


where SECONDS is a number for how many seconds you want the banner to be displayed.