As long as it takes. I know it's not what you're looking for, but there is no right answer. Let them get used to the environment and make sure the tank is set up with the right ground cover and caves and they'll come around. Might be a couple of days, might be a couple of weeks.