It starts from the time you want to wake up (or lie down), adds or subtracts the time to fall asleep and multiples of the cycle length, 90 minutes by default. The results are times that land at the end of a cycle. Example: waking at 7 AM, 15 minutes to fall asleep and 5 cycles gives 11:15 PM.