; or (2) if the application of such sanctions would prevent the United States from meeting the terms of any status of forces agreement to which the United States is a party or otherwise would not further the national security interests of the United States. (e) Waiver The President may waive the application of sanctions under this section on a case-by-case basis and for renewable periods of not more than 180 days if the President— (1) determines that the waiver is in the national security interests of the United States; and (2) not less than 15 days before the granting of the waiver, submits to the appropriate congressional committees a report on the waiver and the justification for the waiver. (f) Effective date This section shall take effect 180 days after the date of the enactment of this Act and apply with respect to activities and transactions described in subparagraph (A) or (B) of subsection (a)(1) that are carried out on or after such date of enactment. (g) Termination and sunset (1) Termination of sanctions The President may terminate any sanctions imposed with respect to the government of a foreign country under subsection (b) or (c) if the President determines and notifies the appropriate congressional committees that the government of the foreign country is no longer carrying out activities or transactions for which the sanctions were imposed and has provided assurances to the United States Government that it will not carry out those activities or transactions in the future. (2) Sunset This section shall terminate on the earlier of— (A) 30 days after the date on which the President certifies to the appropriate congressional committees that Hamas and the Palestinian Islamic Jihad, or any successor or affiliate thereof— (i) are no longer designated as a foreign terrorist organization pursuant to section 219 of the Immigration and Nationality Act ( 8 U.S.C. 1189 ); (ii) are no longer subject to sanctions pursuant to— (I) Executive Order 12947 ( 50 U.S.C. 1701 note