If you have an unresolved mental or physical health problem, an important lifestyle factor that you need to examine is the quantity and quality of the sleep that you’re getting. You need about 8 hours of sleep each day in order to maintain optimal health.