years beginning after December 31, 2011. (f) Use of amended income tax returns To take into account receipt of certain casualty loss grants by disallowing previously taken casualty loss deductions (1) In general Notwithstanding any other provision of the Internal Revenue Code of 1986, if a taxpayer— (A) claims a deduction for any taxable year with respect to a casualty loss to a principal residence (within the meaning of section 121 of such Code) resulting from any federally declared disaster (as defined in section 165(h)(3)(C) of such Code) occurring during the period beginning after December 31, 2011, and before January 1, 2016, and (B) in a subsequent taxable year receives a grant under any Federal or State program as reimbursement for such loss, such taxpayer may elect to file an amended income tax return for the taxable year in which such deduction was allowed (and for any taxable year to which such deduction is carried) and reduce (but not below zero) the amount of such deduction by the amount of such reimbursement. (2) Time of filing amended return Paragraph (1) shall apply with respect to any grant only if any amended income tax returns with respect to such grant are filed not later than the later of— (A) the due date for filing the tax return for the taxable year in which the taxpayer receives such grant, or (B) the date which is 1 year after the date of the enactment of this Act. (3) Waiver of penalties and interest Any underpayment of tax resulting from the reduction under paragraph (1) of the amount otherwise allowable as a deduction shall not be subject to any penalty or interest under such Code if such tax is paid not later than 1 year after the filing of the amended return to which such reduction relates. 104. Net operating losses attributable to disasters in 2012, 2013, 2014, and 2015 (a) In general Section 172(b)(1) of the Internal Revenue Code of 1986 is amended by adding at the end the following: (G) Certain losses attributable federally declared disasters In the case of a taxpayer who has a