Sleep duration is the sum of all your sleep stages (light, REM, and deep), not including waking stages - because you are not really sleeping when you are awake. So on default settings, your Sleep Duration ,ay be a little shorter than your tracking time.
This is a companion discussion topic for the original entry at https://docs.sleep.urbandroid.org/faqs/duration_shorter.html