Create a workflow or learning task based on the following scenarios: 1) A morning alarm that only turns off when physical activity is detected, 2) A shortcut to calculate the current academic week based on the school start date, and 3) An automated process to collect homework attachments from emails, count submissions, and identify missing assignments. Include error handling and optimization tips for each scenario.