Stillnight

Sleep window calculator

A sleep window is the time you set aside for sleep: a wake time you keep every day, and a bedtime counted back from it. Tell us about a typical recent night and you’ll get a place to start, worked out the same way the Stillnight app does it, with techniques from CBT-I.

Everything is worked out in your browser. Nothing you enter is saved or sent.

This is a wellness tool, not medical care; if you have a sleep or health condition, talk to your doctor before changing your sleep.

Your typical night

Think of a usual night in the last week or two.

Including any time reading or on your phone in bed.

When you get up for the day, not when you first wake.

In minutes, from lights out.

In minutes, all together, including lying awake early in the morning.

Weekends too. It starts as your out-of-bed time; change it if you’d rather wake at another time.

A few safety questions

Nine questions keep the window safe for you. Answering “not sure” is fine. It counts as a yes and keeps things gentle.

1. Has a doctor ever told you that you have bipolar disorder?

Why we ask: Cutting back time in bed can tip some people with bipolar disorder into a high. A longer window keeps this safe.

2. Have you ever had a seizure, or do you have epilepsy?

Why we ask: Short nights can make seizures more likely. We keep your window at 7 hours or more.

3. Do you have sleep apnea, or has anyone said you stop breathing or snore loudly in your sleep?

Why we ask: Apnea that isn’t looked after makes daytime sleepiness worse, and a tighter window would add to it.

4. Do you sleepwalk, act out your dreams, or have night terrors?

Why we ask: Less sleep can make these happen more often, so we keep a longer window.

5. Are you pregnant?

Why we ask: Sleep needs change in pregnancy. We keep your window at 7 hours or more and suggest checking in with your midwife or doctor.

6. Are you at risk of falling, for example unsteady on your feet when you get up at night?

Why we ask: The program asks you to get up when you can’t sleep. Being sleepier and up in the dark adds to the risk of a fall.

7. Are you under 18?

Why we ask: The program is built for adults. Teenagers need more sleep, so you get the free sounds, diary and timer.

8. Do you work nights or rotating shifts?

Why we ask: The program depends on a fixed wake time every day. Shift work needs its own plan, so you get the free tools for now.

9. Do you drive or operate machinery for work?

Why we ask: The first weeks can make you sleepier in the day. We’ll check in on that and remind you not to drive when drowsy.

Your first sleep window

It shows here once all nine questions are answered (0 of 9 so far).

Try it on your own nights

Stillnight is a six-week program for iPhone built around your sleep window. A week of 30-second morning diaries sets it, and a weekly check-in moves it, with a short lesson each day and calm sounds for the night.

Coming soon to the App Store

Free forever: 20 sounds, diary, timer.

How it’s worked out

  1. Your time in bed is the gap between getting into bed and getting out of it, across midnight if it needs to be.
  2. Take away the time it takes you to fall asleep and the time you’re awake in the night. What’s left is about how long you sleep.
  3. Your window starts 30 minutes shorter than your time in bed, or at the sleep you’re already getting if that’s more, rounded up to the next 15 minutes.
  4. It never goes below 5½ hours, or 7 hours if any safety answer was “yes” or “not sure”.
  5. Your wake time stays the same every day, so the bedtime is counted back from it.

Questions

What is a sleep window?

The hours you set aside for sleep: a wake time you keep every day and a bedtime counted back from it. Spending less time lying awake in bed is one of the techniques from CBT-I, and the window is how you practice it.

Why is my window shorter than my time in bed?

It starts 30 minutes shorter than your usual time in bed, so less of the night is spent lying awake. If you already sleep for most of your time in bed, it starts at the sleep you’re getting instead.

Why won’t it go below a certain length?

A window never goes below 5½ hours. If any safety answer was “yes” or “not sure”, it never goes below 7 hours, and it’s worth talking to your doctor before you change your sleep.

Why is there no window for under-18s or shift workers?

Teenagers need more sleep than the program allows, and the program depends on waking at the same time every day, which shift work doesn’t allow. The app’s free sounds, diary and timer are still yours.

How is the app different from this calculator?

This page works from one typical night. In the app, a week of your own morning diaries sets your first window, and a weekly check-in moves it 15 minutes at a time, wider when you’re asleep for most of it and narrower when you’re lying awake.

Is anything I enter saved or sent?

No. Everything is worked out in your browser. Nothing you enter is saved, sent anywhere or added to the page address.