Choose a sustainable session length
Longer sessions are not automatically better if focus drops.
Start from experience
Use a duration you can usually complete without skipping.
Separate hard and light work
Problem solving and reading may need different session lengths.
Breaks are outside the formula
If you plan breaks, add them separately to calendar time.