@Prateek_Malpani It depends on whether there is a debit balance at the time the order is executed.
Orders placed when there is no debit balance will be charged 20, and orders placed while there is a debit balance will be charged 40.
In your example, it would be 160, not 240.