When charged how long do they have to take you to court?

It depends which country you're in. In the UK, you can be held for up to 72 hours without charge, while a crime is investigated. After 72 hours, the custody sergeant has to present good reasons to a magistrate in order to get the period extended. Once charged, a person is usually released on bail - pending a court appearance. HOWEVER - if the custody sergeant has grounds to believe a prisoner may abscond before their court date - he can detain the prisoner, until the first court appearance - where the magistrate will decide if bail or remand is the best option.