Sleep cycles and wake-up time
Sleep comes in cycles of about 90 minutes. Wake up in the middle of one and you are groggy for an hour; wake up between two and getting up is much easier. Enter when you have to get up, and you get the times to go to bed for 3 to 6 full cycles - or the other way round, the times to set the alarm.
The calculator adds about 15 minutes to fall asleep. If you fall asleep faster or slower, or your cycles are shorter, change it under Settings.