While calculating gains should we exclude brokerage and other charges from our profit.

Example - I bought 1 share in 50 rs and sold it in 70 rs. So the profit is 20 Rs or 20 - brokerage and other charges.