Ideal daily sleep income - Sleep as Android

Ideal daily sleep income is your target sleep duration - how much time would you ideally want to sleep each night.


This is a companion discussion topic for the original entry at https://docs.sleep.urbandroid.org//sleep/ideal_daily_sleep.html

How is sleep duration calculated? As it is obviously not the time between you go to bed and wake up in the morning.

From what I could tell, sleep duration equals the sum of all the sleeping periods in the tracked day. In the graph there are vertical bars indicating if you’re awake, in light sleep and so on until deep sleep - the sleep duration will detract all the awake time from the total time tracked.

So if you got to bed at midnight and woke up at 8, tracking this whole time with the app, it will give you a sleep duration based on how long it took you to fall asleep and if you woke up during the night. Say it took you 20min to actually fall asleep and you woke up at 3am for whatever reason, shifting in bed and getting back to light sleep 15min later, your sleep duration will probably be 7h25.