; or (II) during official detention before the date on which the prisoner’s sentence commences under section 3585(a). (iii) Exclusions No credit shall be awarded under this subparagraph to a prisoner serving a sentence for a second or subsequent conviction for a Federal offense imposed after the date on which the prisoner’s first such conviction became final, which shall not include any offense under section 1152 or section 1153 for which the prisoner was sentenced to less than 13 months. No credit shall be awarded under this subparagraph to a prisoner with 13 or more criminal history points, as determined under the sentencing guidelines, at the time of sentencing, unless the court determines in writing at sentencing that the defendant’s criminal history category substantially overrepresents the seriousness of the defendant’s criminal history or the likelihood that the defendant will commit other crimes and exercises its authority to lower the defendant's criminal history category. No credit shall be awarded under this subparagraph to any prisoner serving a sentence of imprisonment for conviction for any of the following offenses: (I) A Federal crime of terrorism, as defined in section 2332b(g)(5). (II) A Federal crime of violence, as defined in section 16. (III) A Federal sex offense, as described in section 111 of the Sex Offender Registration and Notification Act ( 34 U.S.C. 20911 ). (IV) Engaging in a continuing criminal enterprise, as defined in section 408 of the Controlled Substances Act ( 21 U.S.C. 848 ). (V) A Federal crime involving child exploitation, as defined in section 2 of the PROTECT Our Children Act of 2008 ( 34 U.S.C. 21101 ). (VI) A violation of— (aa) chapter 11 (relating to bribery, graft, and conflicts of interest); (bb) chapter 29 (relating to elections and political activities); (cc) section 1028A, 1031, or 1040 (relating to fraud); (dd) chapter 63 involving a scheme or artifice to deprive another of the intangible right of honest services