The time taken for the settlement of trade is T+2 business days. Once the funds are settled, you can place a withdrawal request.
Once the withdrawal is initiated it takes 1-3 business days for the funds to appear in your bank account.