; (D) the median rental home price in the United States; (E) the median home sale price in the United States; (F) the median household income in the United States; and (G) the declaration of a major disaster or emergency under the section 401 or 501, respectively, of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5170 , 5191). (3) Duration The prohibition described in paragraph (1)— (A) may not apply for a period of more than 30 consecutive days, but may be renewed for such consecutive periods, each not to exceed 30 days, as the Secretary determines appropriate; and (B) may apply for a period of time not to exceed 1 week before a reasonably foreseeable affordable housing crisis period. (4) Factors considered (A) In general In determining whether a person has violated paragraph (1), there shall be taken into account, among other factors, the aggravating factors described in subparagraph (B) and the mitigating factor described in subparagraph (C). (B) Aggravating factors The aggravating factors described in this subparagraph are the following: (i) Whether the amount charged by such person grossly exceeds the average price at which the housing unit was offered for rental or sale by such person during— (I) the 30-day period before the date on which the determination that the area is experiencing an affordable housing crisis was made under paragraph (1)