Where a debt is established to have become a bad debt, any resulting capital loss will be reduced under s. 39(1)(b) by the amount of any deduction made in respect of the loss under provisions such as s. 20(4) or s. 20(1)(p).