calculates your sleep cycles and adds buttons to quickly set the alarm