Hi, in our app we want to calculate a daily sleep from healthkit data and display it on a graph similar to apple health. but the sleep data that we are getting merged a data for consecutive days. how can we calculate the daily sleep data based on the healthkit sleep data? how does apple health calculate the daily sleep data?