The system calculates in FIFO (first in first out) format so it check T2 first and then T1 .
your 20 shares will be debited today from your demat (demat charges will be there) and the 20 shares will be credited to demat tomorrow
1 Like