Capital gain deduction

#1
I purchase some shares in Stock Exchange & sold it. In that transaction I have some profit after deducting brokerage on purchase & sale as well as STT. I attracts @ 20% flat rate tax.

My question is what are the deductions to be allowed?
 
#2
STCG ( STT paid) = 15%
STCG ( STT Not paid) = Taxed at Slab rate
LTCG ( STT paid) = Exempt u/s 10(38)
LTCG ( STT Not paid) = 1) If Actual cost claimed then taxed at 10%
2) If Indexed cost claimed then taxed at 20%

source: www.taxbharat.org