I understand that when someone is trying spend part of the BTC that is in their HD wallet. The whole amount is spent but the change gets sent back to one of the owner's wallet addresses (or in this case the change address).
Now since every BTC transaction requires a miner's fee... How is the fee of the new transaction to the change address catered for?
1. Is it part of the fee paid when spending the whole BTC amount in the first transaction or it's deducted from the change when it is being transferred to the new change address?
Thanks in advance to anyone who will help me understand these