Being able to claim insolvency can save you money on your taxes if you have canceled debts. Here’s how to figure it out.