Original: Kelly spent ten days in custody before the charges were dismissed.
Simplified: He spent ten days in the police station lockup.