Effective period of agreement
An agreement entered into pursuant to paragraph (1) shall be in effect for the period beginning with the first day of the calendar quarter in which such agreement is entered into or the first day of the succeeding calendar quarter, as may be specified in the agreement; except that in case such agreement is amended to include the services performed for any other affiliate and such amendment is executed after the first month following the first calendar quarter for which the agreement is in effect, the agreement shall be in effect with respect to service performed for such other affiliate only after the calendar quarter in which such amendment is executed. Notwithstanding any other provision of this subsection, the period for which any such agreement is effective with respect to any foreign entity shall terminate at the end of any calendar quarter in which the foreign entity, at any time in such quarter, ceases to be a foreign affiliate as defined in paragraph (6).