is placed in service after the date of the enactment of the Building Efficiently Act of 2018 , and (iv) the taxpayer elects to the application of this paragraph with respect to the building. (D) Buildings acquired by purchase A building is described in this subparagraph if the building— (i) is acquired by purchase from an unrelated person, (ii) meets the certification requirements of subparagraph (E), and (iii) is placed in service after the date of the enactment of the Building Efficiently Act of 2018 . (E) Certification requirements The requirements of this subparagraph are met if, with respect to a building, the building is certified in accordance with subsection (d) as being constructed, reconstructed, or retrofitted, as the case may be, under a plan designed to reduce energy and power consumption of the building by 40 percent or more in comparison to— (i) in the case of retrofits made to an existing building, the baseline annual energy and power consumption of the building, or (ii) in any other case, a reference building which meets the minimum requirements of the International Energy Conservation Code 2004 using methods of calculation under subsection (d). (F) Baseline annual energy and power consumption The baseline annual energy and power consumption of any building shall be determined by using— (i) a building energy performance benchmarking tool designated for purposes of this paragraph by the Administrator of the Environmental Protection Agency, which is based upon energy and power consumption data during the 1-year period ending on the date on which retrofits under the plan are placed in service, or (ii) such other methods of calculation as certified by the Secretary in accordance with subsection (d). (G) Related persons For purposes of subparagraph (D), a person is related to another person if— (i) the persons are members of an affiliated group (as defined in section 1504), or (ii) the persons have a relationship described in subsection (b) of section 267