Loans Held for Investment and Allowance for Loan Losses | Loans Held for Investment and Allowance for Loan Losses Loans held for investment consisted of the following as of September 30, 2017 and December 31, 2016 (in thousands): September 30, 2017 December 31, 2016 Term loans $ 815,043 $ 864,066 Lines of credit 125,837 116,385 Total unpaid principal balance 940,880 980,451 Net deferred origination costs 16,323 19,994 Total loans held for investment $ 957,203 $ 1,000,445 During the nine months ended September 30, 2017, we paid $ 13.7 million to purchase term loans that we previously sold to a third party which are included in the unpaid principal balance of loans held for investment. We include both loans we originate and loans funded by our issuing bank partner and later purchased by us as part of our originations. During the three months ended September 30, 2017 and 2016 , we purchased such loans from our issuing bank partner in the amount of $101.6 million and $147.3 million , respectively. During the nine months ended September 30, 2017 and 2016 , we purchased such loans in the amount of $367.3 million and $381.0 million , respectively. The activity in the allowance for loan losses for the three months ended September 30, 2017 and 2016 consisted of the following (in thousands): Three Months Ended September 30, Nine Months Ended September 30, 2017 2016 2017 2016 Balance at beginning of period $ 105,217 $ 73,849 $ 110,162 $ 53,311 Provision for loan losses 39,582 36,586 118,495 94,294 Loans charged off (45,257 ) (25,268 ) (135,958 ) (65,411 ) Recoveries of loans previously charged off 5,330 2,201 12,173 5,174 Allowance for loan losses at end of period $ 104,872 $ 87,368 $ 104,872 $ 87,368 When loans are charged-off, we may continue to attempt to recover amounts from the respective borrowers and guarantors, or pursue our rights through formal legal action. Alternatively, we may sell such previously charged-off loans to a third-party debt collector. The proceeds from these sales are recorded as a component of the recoveries of loans previously charged off. For the three months ended September 30, 2017 and 2016 , previously charged-off loans sold accounted for $2.4 million and $1.2 million , respectively, of recoveries of loans previously charged off. For the nine months ended September 30, 2017 and 2016 , previously charged-off loans sold accounted for $6.2 million and $3.1 million , respectively, of recoveries of loans previously charged off. As of September 30, 2017 and December 31, 2016 , our credit exposure related to the undrawn line of credit balances was $194.0 million and $164.5 million , respectively. The related reserve on unfunded loan commitments was $4.1 million and $3.9 million as of September 30, 2017 and December 31, 2016 , respectively. Net adjustments to the accrual for unfunded loan commitments are included in general and administrative expenses. The following table contains information, on a combined basis, regarding the unpaid principal balance of loans we originated and the amortized cost of loans purchased from third parties other than our issuing bank partner related to non-delinquent, paying and non-paying delinquent loans as of September 30, 2017 and December 31, 2016 (in thousands): September 30, 2017 December 31, 2016 Non-delinquent loans $ 835,320 $ 890,297 Delinquent: paying (accrual status) 61,953 36,073 Delinquent: non-paying (non-accrual status) 43,607 54,081 Total $ 940,880 $ 980,451 The portion of the allowance for loan losses attributable to non-delinquent loans was $60.6 million and $59.5 million as of September 30, 2017 and December 31, 2016 , respectively, while the portion of the allowance for loan losses attributable to delinquent loans was $44.3 million and $50.7 million as of September 30, 2017 and December 31, 2016 , respectively. The following table shows an aging analysis of the unpaid principal balance related to loans held for investment by delinquency status as of September 30, 2017 and December 31, 2016 (in thousands): September 30, 2017 December 31, 2016 By delinquency status: Non-delinquent loans $ 835,320 $ 890,297 1-14 calendar days past due 34,724 25,899 15-29 calendar days past due 20,055 15,990 30-59 calendar days past due 20,975 22,677 60-89 calendar days past due 15,658 13,952 90 + calendar days past due 14,148 11,636 Total unpaid principal balance $ 940,880 $ 980,451 |