Form 982 is used to determine, under certain circumstances described in section 108, the amount of discharged indebtedness that can be excluded from gross income.