Question: how long do you have to stay in the brig?
Answer: The only penalty you get by being sent to the brig is simply waiting there until you're freed by other players, but according to Venture Beat you can be locked up for as high as 80 minutes.