You can something called cron job. Basically you can schedule a process in Linux and that's exactly what cronjobs are (scheduled jobs)
Edit crontab and create a cron job
sudo crontab -e
Add the following line:
17 7 * * * certbot renew --post-hook "systemctl reload nginx"