There is actually a straightforward tip that is fairly reliable. Take melatonin 30 minutes before you need to go to sleep in order to wake up on time. This stops you from staying up too late because it softly commits you to only being up for another 30 minutes.