A good nights sleep

This might be helpful… http://sleepcalculator.com/

that doesn’t work - it said if I wake up at 9am, I should go to bed somewhere between 11:45 pm and 7:15 am

A sleep cycle is 90 minutes long. You need 5 to 6 sleep cycles for a good nights sleep.