How do you manage screen time for yourself?

By calculating how many hours of sleep I’m trying to achieve for the night to be well rested