When arrested, the court sets a bail amount based on the crime's severity, your criminal history, and your flight risk. If you can't afford bail, you stay in jail until your court date. The duration of jail time varies.