and inserting subsections (a)(2)(B)(ii) and (b)(2)(B) , and (ii) by inserting or (b)(2)(A) after (a)(2)(B)(i) in subparagraph (B), (B) in paragraph (3), by inserting or (b)(2)(B), as the case may be, after (a)(2)(B)(ii) , (C) in paragraph (5), by striking subsection (a)(2)(B)(ii) and inserting subsections (a)(2)(B)(ii) and (b)(2)(B) , and (D) in paragraph (6), by inserting or inverted domestic corporation, as the case may be, after surrogate foreign corporation . (c) Effective date The amendments made by this section shall apply to taxable years ending after May 8, 2014.