I used to sleep bad, many days I was waking up as I had no sleeped.
Its going to 3 months in a row, on which I am sleeping pretty well.
Factors that have influence on me:
-Hours of sleep:
-> Less than 7, bad
-> Between 7 and 8, maybe ok, maybe bad
-> More than 8, probably OK
* Consideration, I have to wake up at 7 AM if I work from home, 6:30 AM if I got to go to office.
-Dinner:
-> Heavy Dinner: Bad
-> Going to bed just after dinner: Bad
* Consideration: Where I live is common having dinner later than 21:00 or 22:00.
If I have dinner later than 22:00 I do know that next day I will be really tired, because this means that I will go to bed just after dinner or that I will sleep less hours.
So, I have changed habits. Now I am having a light dinner about 20:30. After dinner I have time to watch a tv show or even having a short walk and by 22:00 I am on bed, depending on if I am tired or not, I read until 22:30 or 23:00, they will be about 8 hours sleeping.