my @day_numbers = grep $days_mask[$i] & 2**$_, 0..6;