How long does it take to get retention funds back?

Hi ,
I have noticed that some amount from my account has been deducted as a retention fund.
In an earlier question, I have found that Retention fund gets back on my bank account.
My question is- how long does it take to get retention funds back? And how early can I use it in my Zerodha account for further trading, if I could?

Also, I have heard that retention funds do not get deducted if amount of money is less than 10000 Rs… I had only 5k in my account yesterday then why it is deducted, I couldn’t understand.

Please help

I guess you are talking about quarter settlement. Check this post, has everything you need to know.