The important design choice
The work schedule defines which days must be present. An activity log alone cannot tell whether a missing day means no work or missing data. Incomplete coverage withholds the rate instead of treating unknown time as zero.
if missing_shift_records:
retained_sales_per_hour = None
next_action = "Restore missing activity"Simplified illustration of the validation rule.