Investments | Investments All of the Company’s debt and equity securities are classified as AFS and are carried at fair value. The Company evaluates whether AFS securities are other-than-temporarily impaired (OTTI) based on criteria that include the extent to which cost exceeds market value, the duration of the market value decline, the credit rating of the issuer or security, the failure of the issuer to make scheduled principal or interest payments and the financial health and prospects of the issuer or security. Declines in the value of AFS securities determined to be OTTI are recognized in earnings and reported as OTTI losses. Debt securities with unrealized losses are considered OTTI if the Company intends to sell the debt security or if the Company will be required to sell the debt security prior to any anticipated recovery. If the Company determines that a debt security is OTTI under these circumstances, the impairment recognized in earnings is measured as the difference between the amortized cost and the current fair value. A debt security is also determined to be OTTI if the Company does not expect to recover the amortized cost of the debt security. However, in this circumstance, if the Company does not intend to sell the debt security and will not be required to sell the debt security, the impairment recognized in earnings equals the estimated credit loss as measured by the difference between the present value of expected cash flows and the amortized cost of the debt security. Expected cash flows are discounted using the debt security’s effective interest rate. An equity security is determined to be OTTI if the Company does not expect to recover the cost of the equity security. Declines in the value of AFS securities determined to be temporary are reported net of income taxes as other comprehensive losses and included as a component of stockholders’ equity. Interest and dividend income, amortization of premiums, accretion of discounts and realized gains and losses on AFS securities are included in investment income. Interest income is accrued as earned. Dividend income is recognized as income on the ex-dividend date of the equity security. The cost of AFS securities sold is based on the first-in, first-out method. Following is a summary of AFS securities as of September 26, 2015 and December 27, 2014 : Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Fair Value (Amounts are in thousands) September 26, 2015 Tax exempt bonds $ 3,437,844 17,125 2,425 3,452,544 Taxable bonds 2,224,258 3,405 3,198 2,224,465 Restricted investments 164,549 — 309 164,240 Equity securities 960,064 63,612 40,646 983,030 $ 6,786,715 84,142 46,578 6,824,279 December 27, 2014 Tax exempt bonds $ 3,205,647 17,460 4,011 3,219,096 Taxable bonds 1,569,828 3,005 4,592 1,568,241 Restricted investments 170,000 — 776 169,224 Equity securities 1,092,985 191,493 10,309 1,274,169 $ 6,038,460 211,958 19,688 6,230,730 Realized gains on sales of AFS securities totaled $29,620,000 and $73,542,000 for the three and nine months ended September 26, 2015 , respectively. Realized losses on sales of AFS securities totaled $15,092,000 and $20,771,000 for the three and nine months ended September 26, 2015 , respectively. Realized gains on sales of AFS securities totaled $13,933,000 and $35,664,000 for the three and nine months ended September 27, 2014, respectively. Realized losses on sales of AFS securities totaled $999,000 and $1,953,000 for the three and nine months ended September 27, 2014 , respectively. The amortized cost and fair value of AFS securities by expected maturity as of September 26, 2015 and December 27, 2014 are as follows: September 26, 2015 December 27, 2014 Amortized Cost Fair Value Amortized Cost Fair Value (Amounts are in thousands) Due in one year or less $ 1,111,207 1,113,729 996,674 999,169 Due after one year through five years 4,277,592 4,288,374 3,493,708 3,501,821 Due after five years through ten years 202,258 202,630 183,552 183,168 Due after ten years 71,045 72,276 101,541 103,179 5,662,102 5,677,009 4,775,475 4,787,337 Restricted investments 164,549 164,240 170,000 169,224 Equity securities 960,064 983,030 1,092,985 1,274,169 $ 6,786,715 6,824,279 6,038,460 6,230,730 Following is a summary of temporarily impaired AFS securities by the time period impaired as of September 26, 2015 and December 27, 2014 : Less Than 12 Months 12 Months or Longer Total Fair Value Unrealized Losses Fair Value Unrealized Losses Fair Value Unrealized Losses (Amounts are in thousands) September 26, 2015 Tax exempt bonds $ 401,652 1,721 81,065 704 482,717 2,425 Taxable bonds 1,035,031 2,834 78,557 364 1,113,588 3,198 Restricted investments 164,240 309 — — 164,240 309 Equity securities 520,390 35,420 15,053 5,226 535,443 40,646 Total temporarily impaired AFS securities $ 2,121,313 40,284 174,675 6,294 2,295,988 46,578 December 27, 2014 Tax exempt bonds $ 689,909 2,359 93,454 1,652 783,363 4,011 Taxable bonds 936,512 3,666 68,035 926 1,004,547 4,592 Restricted investments 169,224 776 — — 169,224 776 Equity securities 107,352 8,373 6,229 1,936 113,581 10,309 Total temporarily impaired AFS securities $ 1,902,997 15,174 167,718 4,514 2,070,715 19,688 There are 343 AFS securities contributing to the total unrealized loss of $46,578,000 as of September 26, 2015 . Unrealized losses related to debt securities are primarily due to interest rate volatility impacting the market value of certain bonds. The Company continues to receive scheduled principal and interest payments on these debt securities. Unrealized losses related to equity securities are primarily due to temporary equity market fluctuations that are expected to recover. |