There is a time range everyone should shoot for if you’re questing for a perfect night’s sleep, experts tell TIME.

The shift from non-REM to REM sleep happens at certain times of the night regardless of when you go to bed, Walker says. So if you hit the sack very late—at, say, 3 AM—your sleep will tilt toward lighter, REM-heavy sleep. And that reduction in deep, restorative sleep may leave you groggy and blunt-minded the next day.