The process flow begins with your decision to buy a share. First, you need to fund your trading account by debiting your bank account. Once the trading account is funded, you can use the margin to buy shares. If the shares are not squared off on the same day, it goes into delivery. On T+2 day, the share will come into your demat account and after that, you are free to sell the shares whenever you want. When you sell the shares, the reverse function operates. You can only sell shares in your trading account that you own. On the same day or by 11 am on T+1 day, you have to give the DIS to the broker for processing the demat debit. On a T+1 date, the shares get debited to your demat account. On T+2 day by EOD, the credit for the sale proceeds comes into your bank account. That closes the process loop.