"(B) MANDATORY ACTIVATION.-The See-retary shall activate the border emergency authority if-
"(i) during a period of 7 consecutive calendar days, there is an average of 5,000 or more aliens who are encountered each day; or
"(ii) on any 1 calendar day, a combined total of 8,500 or more aliens are en-countered.
"(C) CALCULATION OF ACTIVATION.-
"(i) IN GENERAL.-For purposes of subparagraphs (A) and (B), the average for the applicable 7-day period shall be calculated using-
"(I) the sum of-
"(aa) the number of encounters that occur between the southwest land border ports of entry of the United States;
"(bb) the number of encounters that oceur between the ports of entry along the southern coastal borders; and