Any ways to calculate

Is there any way to calculate the NET AMOUNT that’ll be debited or credited from ledger? I know brokerage calculator is meant for this thing but still it won’t give exact amount.

If you have traded on NSE, then exchange charges are 0.00325% of trade value, GST is 18% of exchange charges, SEBI charges are 0.00015% of trade value, stamp duty is 0.0030% of trade value and STT is 0.1% of trade value, which is also rounded off. This is for CNC buy. For CNC sale, there will be further demat transaction charges 15.93. In BSE, the exchange charges are slightly different. You can maintain a format in excel.