When an entity does not intend to sell the security, and it is more likely than not that the entity will not have to sell the security before recovery of its cost basis, it will recognize the credit component of an other-than-temporary impairment of a debt security in earnings and the remaining portion in other comprehensive income.