; and (B) the term nonviolent offense means a Federal criminal offense that is not— (i) a crime of violence; or (ii) a sex offense (as that term is defined in section 111 of the Sex Offender Registration and Notification Act). . 3. Early release and home confinement for youth Section 3624 of title 18, United States Code, is amended— (1) in subsection (a), by inserting at the early release date provided in subsection (g), if applicable, or otherwise after A prisoner shall be released by the Bureau of Prisons ; (2) in subsection (c), paragraph (1), by inserting except as provided in paragraph (2)(A)(ii), before not to exceed 12 months ; (3) in subsection (c), by amending paragraph (2) to read as follows: (2) Home confinement authority (A) The authority under this subsection may be used— (i) to place a prisoner in home confinement for the greater of 10 percent of the term of imprisonment of that prisoner or 1 year; and (ii) to place a youth prisoner in home confinement for the greater of 25 percent of the term of imprisonment of that prisoner or 18 months. (B) Except as provided in subparagraph (C), placement in a community correction center shall not be used in lieu of home confinement solely because the prisoner has been diagnosed with a mental illness, mental disorder, or mental health condition. (C) There shall be a presumption in favor of direct release to home confinement unless the Director of the Bureau of Prisons makes specific findings in writing that the resources provided by a community correction center are necessary for the prisoner to adjust and prepare for the reentry into the community and those resources cannot be provided if the prisoner is in home confinement. (D) A prisoner placed on home confinement may not be ordered to pay the cost of electronic monitoring.