The brokerage charges for all the trades you have done in any single day are deducted at the end of the day.
The brokerage charge is deducted for completed orders only. For cancelled and rejected orders, there is no brokerage charge.
Zerodha doesn’t charge any brokerage for equity delivery trades and for mutual fund investments. You must pay the brokerage in other segments like equity derivatives, commodity and currency trading, and equity intraday trades.