How can I schedule automatic server shutdowns?

I have installed Ubuntu Server 20.10.3 LTS on an old Dell R710 and installed MineOS on top of it. I have successfully got 3 1.18 servers and a BungeeChord server connecting them all together. I would like this server to turn itself on at 09:00 every morning and shutdown at 24:00 every day, how can I have the servers shut themselves down and back themselves up on a schedule every night so it’s not just killing the servers abruptly when Ubuntu shuts down?