Press Win + R to open the Run dialog
Type control and press Enter
Go to Ease of Access >Click on Ease of Access Center
Click on Make it easier to focus on tasks
Find the option that says "Show notifications for"
Choose the time you want notifications to stay on screen (from 5 seconds up to 5 minutes)
Click Apply to save the changes