In determining the amount of a civil penalty under paragraph (1), the Secretary or the court shall take into account the nature, circumstances, extent, and gravity of the act subject to penalty, the person’s ability to pay, the effect on the person’s ability to continue to do business, any history of prior, similar acts, and such other matters as justice may require.