; or (ii) any fee for a credit-related ancillary product sold in connection with the credit card account under an open end consumer credit plan. (e) Calculation of the annual percentage rate for closed-End credit For purposes of this section, the annual percentage rate applicable to credit not under an open end credit plan shall be calculated under section 107(a)(1), subject to adjustments to the amount considered a finance charge, as provided in the rules issued by the Secretary of Defense on July 22, 2015, to carry out section 987 of title 10, United States Code. (f) Relation to State law Nothing in this section may be construed to preempt any provision of State law that provides greater protection to consumers than is provided under this section. (g) Penalties and remedies In addition to the penalties and remedies in this Act, section 987(f) of title 10, United States Code, shall apply to a creditor who extends consumer credit to a consumer in violation of this section to the same extent as such section 987(f) applies to a creditor who extends consumer credit to a covered member or a dependent with respect to a covered member (as those terms are defined in such section 987). (h) Preservation of State enforcement (1) State attorneys general Not later than 3 years after the date on which a violation of this section occurs, the attorney general of a State (or an equivalent official) may bring a civil action in the name of that State— (A) in any district court of the United States that is located in that State or in a State court that is located in that State and that has jurisdiction over the defendant; and (B) to— (i) enforce provisions of this section or rules issued under this section