Tax-loss harvesting is an investment strategy that allows you to reduce your taxable investment income by offsetting your capital gains…