To calculate when to go to bed, consider when you need to wake up for work or school and then count backward 7-9 hours. The amount of sleep you need depends on your age and lifestyle, but for healthy adults, the recommendation is between 7-9 hours.