Funds from shares sold will take two working days to reflect in your withdrawable balance. For example, if you sell your investments on Monday, the amount would reflect in your trading account on Wednesday, post which you will be able to take payout of this amount. If case you square off your f&o position, you can take payout of the margin amount on the same day. However, any profits arrived in such trades would be allowed for payout from T+1 day.
This assumes that all days from Monday to Thursday are regular business days.