How to use the result
Treat the main sleep window as protected time. Account for actual overtime, table closure, handover, transport delay, household noise, and the time needed to become alert after waking.
A planned nap may add sleep before the shift, but the planner removes it when the available interval is too tight to preserve a separate main sleep window and preparation period.