If a person is detained and taking part in a trial but is not found guilty, you can post bail. There is a procedure for posting bail, and there is typically a deadline by which you must do it. You can typically be freed on bail considerably sooner and pay less money in cases of less severe crimes. You may have to wait 48 hours for a bail hearing in cases of less severe crimes.
In circumstances where a defendant has a history of skipping court hearings, they have a criminal record, or they have committed a significant offense, some jurisdictions may take longer to set a bond. You can decide how to manage bail payments once the bail has been established.