Agree with Roland, the longer their kept as prisoners, the harder to settle. How many times have you got a stray pigeon in, fed it and kept it overnight, sent it on a trainer towards it's home the next day, only to see it return to your loft.
On average I would say two weeks, depending on the incentives the pigeons have to stay with you.