Calculates optimal bed times based on sleep cycles