Sleep Time

Calculates recommended sleep/wake time based on HealthKit data. v1.1 Fixed a bug related to date calculation.

Get Workflow

Preview

Text

Number

Set Variable

Date

Set Variable

Date

If

Date

Set Variable

Date

Set Variable

If

Date

Adjust Date

Set Variable

Date

Set Variable

If

Find Health Samples

Set Variable

Repeat with Each

Get Variable

Get Details of Health Sample

Set Variable

Get Variable

Get Details of Health Sample

Set Variable

Get Variable

Calculate

Set Variable

Get Variable

Adjust Date

Set Variable

If

Get Variable

Add to Variable

Get Variable

Add to Variable

If

If

Repeat with Each

Get Variable

Calculate Statistics

Set Variable

Calculate

Set Variable

Get Variable

Calculate

Calculate

Set Variable

Calculate

Set Variable

Get Variable

Repeat with Each

Get Time Between Dates

Get Variable

Get Item from List

Calculate

Add to Variable

Repeat with Each

Get Variable

Calculate Statistics

Calculate

Set Variable

Calculate

Round Number

Set Variable

Get Variable

Get Time Between Dates

Set Variable

Calculate

Calculate

Set Variable

Date

Adjust Date

Set Variable

Adjust Date

Set Variable

Adjust Date

Set Variable

Show Alert