family and medical leave credit determined under section 45S(a). . (c) Credit allowed against AMT Subparagraph (B) of section 38(c)(4) is amended by redesignating clauses (ix) through (xi) as clauses (x) through (xii), respectively, and by inserting after clause (viii) the following new clause: (ix) the credit determined under section 45S, . (d) Conforming amendments (1) Denial of double benefit Section 280C(a) is amended by inserting 45S(a), after 45P(a), . (2) Election to have credit not apply Section 6501(m) is amended by inserting 45S(g), after 45H(g), . (3) Clerical amendment The table of sections for subpart D of part IV of subchapter A of chapter 1 is amended by adding at the end the following new item: Sec. 45S. Employer credit for paid family and medical leave. . (e) Effective date The amendments made by this section shall apply to wages paid in taxable years beginning after December 31, 2017. B Provisions relating to low-income housing credit 13411. Reconstruction or replacement period after casualty loss (a) In general Subparagraph (E) of section 42(j)(4) is amended by striking a reasonable period established by the Secretary and inserting a reasonable period established by the applicable housing credit agency (not to exceed 25 months from the date on which the casualty loss arises). The determination under paragraph (1) shall not be made with respect to a property the basis of which is affected by a casualty loss until the period described in the preceding sentence with respect to such property has expired. . (b) Effective date The amendment made by this section shall apply to casualty losses arising after the date of the enactment of this Act. 13412. Modification of rights relating to building purchase (a) In general Subparagraph (A) of section 42(i)(7) is amended— (1) by striking a right of 1st refusal and inserting an option , and (2) by striking the property and inserting the property or a partnership interest relating to the property . (b) Conforming amendment Subparagraph (B) of section