itemized deduction for purposes of section 68 of such Code. (4) Qualified contributions (A) In general For purposes of this subsection, the term qualified contribution means any charitable contribution (as defined in section 170(c) of the Internal Revenue Code of 1986) if— (i) such contribution— (I) is paid during the period beginning on August 23, 2017, and ending on December 31, 2017, in cash to an organization described in section 170(b)(1)(A) of such Code, and (II) is made for relief efforts in the Hurricane Harvey disaster area, the Hurricane Irma disaster area, or the Hurricane Maria disaster area, (ii) the taxpayer obtains from such organization contemporaneous written acknowledgment (within the meaning of section 170(f)(8) of such Code) that such contribution was used (or is to be used) for relief efforts described in clause (i)(II), and (iii) the taxpayer has elected the application of this subsection with respect to such contribution. (B) Exception Such term shall not include a contribution by a donor if the contribution is— (i) to an organization described in section 509(a)(3) of the Internal Revenue Code of 1986, or (ii) for the establishment of a new, or maintenance of an existing, donor advised fund (as defined in section 4966(d)(2) of such Code). (C) Application of election to partnerships and S corporations In the case of a partnership or S corporation, the election under subparagraph (A)(iii) shall be made separately by each partner or shareholder. (b) Special rules for qualified disaster-Related personal casualty losses (1) In general If an individual has a net disaster loss for any taxable year— (A) the amount determined under section 165(h)(2)(A)(ii) of the Internal Revenue Code of 1986 shall be equal to the sum of— (i) such net disaster loss, and (ii) so much of the excess referred to in the matter preceding clause (i) of section 165(h)(2)(A) of such Code (reduced by the amount in clause (i) of this subparagraph) as exceeds 10 percent of the adjusted gross income of the individual, (B)