Recommended Sleep Window
{{ recommendedWindowLabel }}
{{ recommendedBedtime }} to {{ wake_target }}
Baseline TST {{ formatHours(baselineTstHours) }} Projected SE {{ formatPercent(recommendedProjectedEfficiency) }} Goal {{ formatPercent(efficiencyGoalValue) }} Step {{ step_min }} min Restriction {{ recommendedRestrictionMinutes }} min Cadence {{ adaptationCadenceLabel }} {{ pressureBand }} Gap {{ formatSignedPercent(recommendedProjectedEfficiency - efficiencyGoalValue) }}
h:
%
h:
h:
min:
min:
Window Bedtime Wake Projected SE Goal Gap Pressure Δ Ratio Fatigue risk Status Copy
{{ row.window_label }} {{ row.bedtime }} {{ wake_target }} {{ formatPercent(row.projected_efficiency) }} {{ formatSignedPercent(row.projected_efficiency - efficiencyGoalValue) }} {{ formatFixed(row.pressure_delta_min, 0) }} min {{ formatFixed(row.restriction_ratio, 3) }} {{ row.fatigue_risk }} {{ row.status }}
Priority Action Why now Timing Focus Copy
{{ row.priority }} {{ row.action }} {{ row.reason }} {{ row.timing }} {{ row.focus }}
No coaching plan available.

                    
:

Introduction

CBT-I Sleep Window Calculator helps you work faster by turning raw inputs into a clear result package.

In practice, it calculates outcomes from structured inputs so you can make decisions without rebuilding the logic by hand each time.

Use it when you need repeatable output from the same logic, whether you are doing a quick check, preparing a report, or comparing multiple scenarios side by side.

Typical workflow: enter the minimum required fields, run once for a baseline, then adjust one assumption at a time to see how the output changes.

This output is informational and does not replace professional evaluation, diagnosis, or treatment.

Everyday Use and Decision Guide

Start with a plain baseline run before exploring advanced controls. That gives you an anchor result and makes later changes easier to interpret.

In day-to-day use, most people cycle through three moves: set core inputs, compare outcomes, and export a clean snapshot for records or collaboration. The goal is not just getting a number, but understanding what changed and why.

  • If you are unsure where to start, fill only the first core field (Baseline total sleep time) and review the baseline output before touching advanced settings.
  • If the result swings too much between runs, lock one reference input (Fixed wake time) so comparisons remain fair.
  • If a result looks unrealistic, re-check units, percent vs absolute values, and date/time formats before recalculating.
  • If you need to share the output, use the built-in copy/download controls after confirming values are complete.

Technical Details

The processing path is deterministic for the same inputs: values are normalized, validated, and then transformed into computed metrics and guidance rows. Invalid entries are constrained or flagged before result rendering.

The workflow runs locally in your browser for normal calculations and formatting.

Inputs and results stay in the browser session unless you choose to copy or download exports.

Inputs and outputs
Field Type Role
Baseline total sleep timeInputUsed in computation or validation
Fixed wake timeInputUsed in computation or validation
Sleep efficiency goalInputUsed in computation or validation
Minimum windowInputUsed in computation or validation
Maximum windowInputUsed in computation or validation
Window stepInputUsed in computation or validation
WindowOutputShown in the results panel
BedtimeOutputShown in the results panel
WakeOutputShown in the results panel
Projected SEOutputShown in the results panel
Goal GapOutputShown in the results panel
Pressure ΔOutputShown in the results panel

Detected export paths include CSV, JSON, DOCX outputs. Chart tabs are included for visual comparison.

Step-by-Step Guide

Use this sequence for predictable runs and cleaner comparisons.

  1. Review the main form and identify the minimum fields needed for a first run.
  2. Enter core inputs: Baseline total sleep time, Fixed wake time, Sleep efficiency goal.
  3. Open advanced options only after you confirm the baseline output looks reasonable.
  4. Use the primary action controls (Advanced, Window Scenarios, Coaching Plan) and read the summary panel first.
  5. Inspect detailed rows or tabs to confirm assumptions, edge cases, and warnings.
  6. Copy or download the result set when you are ready to document or share it.

After one complete pass, keep the same baseline and change only one variable per rerun.

Interpreting Results

Read the top summary first, then open detailed rows to confirm how each input contributed to the final output.

When values sit near thresholds, small input edits can flip interpretation labels. Treat boundary results as prompts for a second run rather than final answers.

  • Stable/expected: Inputs pass validation, outputs are internally consistent, and guidance suggests normal follow-through.
  • Borderline: Values sit close to decision boundaries; re-run with confirmed units and one adjusted assumption.
  • Outlier: Inputs or context produce unusual output; inspect warnings and review each field before acting.

Worked Examples

  1. Baseline run with Baseline total sleep time
    Input snapshot: Baseline total sleep time: 12:30; Fixed wake time: 12:30; Sleep efficiency goal: Sample value
    Key processing note: Use default advanced settings and run once.
    Final output: You get a stable baseline output you can compare against later runs.
    What this means: This establishes a reference point before optimization.
  2. Sensitivity check
    Input snapshot: Baseline total sleep time: 12:30; Fixed wake time: 12:30; Sleep efficiency goal: Sample value; adjust one advanced setting only.
    Key processing note: Re-run and compare summary deltas and warnings.
    Final output: You see which setting most strongly affects the final outcome.
    What this means: This prevents over-tuning multiple variables at once.
  3. Share-ready snapshot
    Input snapshot: Baseline total sleep time: 12:30; Fixed wake time: 12:30; Sleep efficiency goal: Sample value
    Key processing note: Confirm result rows, then copy or download exports.
    Final output: Detected export paths include CSV, JSON, DOCX outputs.
    What this means: This creates a portable record for reports or team handoff.

FAQ

Does this tool store my data on a server?

Inputs and results stay in the browser session unless you choose to copy or download exports. The workflow runs locally in your browser for normal calculations and formatting.

How accurate are the results?

Accuracy depends on input quality and model assumptions. Treat the output as decision support, not guaranteed truth.

What formats does it accept and return?

Input handling follows the on-page fields, and outputs are presented as computed metrics and guidance rows.

Can I use it when I am offline?

Yes for core use, because no mandatory remote API call was detected for the main workflow.

Is there a cost or license restriction inside this tool UI?

No paywall controls are declared in this package. Review site-wide terms for broader usage policy.

What should I do when the result is borderline?

Repeat the run with one changed assumption at a time, then compare outputs before making a decision.

Glossary

Input field
User value consumed by the calculation flow.
Derived value
Output computed from one or more inputs.
Validation
Rule that blocks invalid or unsafe input.
Precision
Number of decimals shown in output values.
Result row
Label and value pair shown in results.
Export
Local file generated from current results.