XML 23 R13.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Loans and Allowance for Loan and Lease Losses | 9 Months Ended
--- | ---
Sep. 30, 2018
Accounts Notes Loans And Financing Receivable Gross Allowance And Net [Abstract] |
Loans and Allowance for Loan and Lease Losses |
(5) | Loans and Allowance for Loan and Lease Losses
Loans receivable that management has the intent and ability to hold for the foreseeable future or until maturity or payoff are stated at their outstanding unpaid principal balances, net of an allowance for loan losses and any deferred fees or costs. Interest income is accrued on the unpaid principal balance. Loan origination fees, net of certain direct origination costs, are deferred and recognized as an adjustment of the yield (interest income) of the related loans, generally being amortized over the contractual life of the loan. Premiums and discounts on purchased loans are amortized as adjustments to interest income using the effective yield method. The loan portfolio is segmented into commercial and consumer loans. Commercial loans consist of the following classes: commercial and industrial, commercial real estate, commercial real estate-construction and lease financing. Consumer loans consist of the following classes: residential mortgage loans, home equity loans and other consumer loans. For all classes of loans, the accrual of interest generally is discontinued when the contractual payment of principal or interest has become 90 days or more past due, or management has serious doubts about further collectability of principal or interest even though the loan is currently performing. A loan past due 90 days or more may remain on accrual status if it is in the process of collection and is either guaranteed or well secured. When a loan is placed on nonaccrual status, unpaid interest is credited to income. Interest received on nonaccrual loans, including impaired loans, is either applied against principal or reported as interest income, according to management’s judgment as to the collectability of principal. Nonaccrual loans may be restored to accrual status when the obligation is brought current, has performed in accordance with the contractual terms for a reasonable period of time (generally, at least nine consecutive months) and the ultimate collectability of the total contractual principal and interest is no longer in doubt. The past due status of all classes of loans receivable is determined based on contractual due dates for loan payments. Commercial and Industrial Mid Penn originates commercial and industrial loans. Most of the Bank’s commercial and industrial loans have been extended to finance local and regional businesses and include short-term loans to finance machinery and equipment purchases, inventory, and accounts receivable. Commercial loans also involve the extension of revolving credit for a combination of equipment acquisitions and working capital in expanding companies. The maximum term for loans extended on machinery and equipment is based on the projected useful life of such machinery and equipment. Generally, the maximum term on non-mortgage lines of credit is one year. The loan-to-value ratio on such loans and lines of credit generally may not exceed 80 percent of the value of the collateral securing the loan. The Bank’s commercial business lending policy includes credit file documentation and analysis of the borrower’s character, capacity to repay the loan, the adequacy of the borrower’s capital and collateral, as well as an evaluation of conditions affecting the borrower. Analysis of the borrower’s past, present, and future cash flows is also an important aspect of the Bank’s current credit analysis. Nonetheless, such loans are believed to carry higher credit risk than other extensions of credit. Commercial and industrial loans typically are made on the basis of the borrower’s ability to make repayment from the cash flow of the borrower’s business. As a result, the availability of funds for the repayment of commercial business loans may be substantially dependent on the success of the business itself, which, in turn, is likely to be dependent upon the general economic environment. Mid Penn’s commercial and industrial loans are usually, but not always, secured by business assets and personal guarantees. However, the collateral securing the loans may depreciate over time, may be difficult to appraise, and may fluctuate in value based on the success of the business. Commercial Real Estate and Commercial Real Estate - Construction Commercial real estate and commercial real estate construction loans generally present a higher level of risk than loans secured by one-to-four family residences. This greater risk is due to several factors, including the concentration of principal in a limited number of loans and borrowers, the effect of general economic conditions on income producing properties, and the increased difficulty of evaluating and monitoring these types of loans. In addition, the repayment of loans secured by commercial real estate is typically dependent upon the successful operation of the related real estate project. If the cash flow from the project is reduced, the borrower’s ability to repay the loan may be impaired. Residential Mortgage Mid Penn offers a wide array of residential mortgage loans for both permanent structures and those under construction. The Bank’s residential mortgage originations are secured primarily by properties located in its primary market and surrounding areas. Residential mortgage loans have terms up to a maximum of 30 years and with loan-to-value ratios up to 100 percent of the lesser of the appraised value of the security property or the contract price. Private mortgage insurance is generally required in an amount sufficient to reduce the Bank’s exposure to at or below the 85 percent loan to value level. Residential mortgage loans generally do not include prepayment penalties. In underwriting residential mortgage loans, the Bank evaluates both the borrower’s ability to make monthly payments and the value of the property securing the loan. Most properties securing real estate loans made by Mid Penn are appraised by independent fee appraisers. The Bank generally requires borrowers to obtain title insurance and fire and property insurance (including flood insurance, if necessary) in an amount not less than the amount of the loan. Real estate loans originated by the Bank generally contain a “due on sale” clause allowing the Bank to declare the unpaid principal balance due and payable upon the sale of the security property. The Bank underwrites residential mortgage loans to the standards established by the secondary mortgage market, i.e., Fannie Mae, Ginnie Mae, Freddie Mac, or Pennsylvania Housing Finance Agency standards, with the intention of selling the majority of residential mortgages originated into the secondary market. In the event that the facts and circumstances surrounding a residential mortgage application do not meet all underwriting conditions of the secondary mortgage market, the Bank will evaluate the failed conditions and evaluate the potential risk of holding the residential mortgage in the Bank’s portfolio rather than rejecting the loan request. In the event that the loan is held in the Bank’s portfolio, the interest rate on the residential mortgage would be increased to compensate for the added portfolio risk. Consumer, Including Home Equity Mid Penn offers a variety of secured consumer loans, including home equity, automobile, and deposit secured loans. In addition, the Bank offers other secured and unsecured consumer loans. Most consumer loans are originated in Mid Penn’s primary market and surrounding areas. The largest component of Mid Penn’s consumer loan portfolio consists of fixed rate home equity loans and variable rate home equity lines of credit. Substantially all home equity loans and lines of credit are secured by junior lien mortgages on principal residences. The Bank will lend amounts, which, together with all prior liens, typically may be up to 85 percent of the appraised value of the property securing the loan. Home equity term loans may have maximum terms up to 20 years, while home equity lines of credit generally have maximum terms of five years. Consumer loan terms vary according to the type and value of collateral, length of contract and creditworthiness of the borrower. The underwriting standards employed by the Bank for consumer loans include an application, a determination of the applicant’s payment history on other debts, and an assessment of ability to meet existing obligations and payments on the proposed loan. Although creditworthiness of the applicant is a primary consideration, the underwriting process also includes a comparison of the value of the collateral, if any, in relation to the proposed loan amount. Consumer loans may entail greater credit risk than do residential mortgage loans, particularly in the case of consumer loans which are unsecured or are secured by rapidly depreciable assets, such as automobiles or recreational equipment. In such cases, any repossessed collateral for a defaulted consumer loan may not provide an adequate source of repayment of the outstanding loan balance. In addition, consumer loan collections are dependent on the borrower’s continuing financial stability, and thus are more likely to be affected by adverse personal circumstances. Furthermore, the application of various federal and state laws, including bankruptcy and insolvency laws, may limit the amount that can be recovered on such loans. Junior liens inherently have more credit risk by virtue of the fact that another financial institution may have a higher security position in the case of foreclosure liquidation of collateral to extinguish the debt. Generally, foreclosure actions could become more prevalent if the real estate market weakens and property values deteriorate. Allowance for Loan and Lease Losses The allowance for credit losses (“allowance”) consists of (i) the allowance for loan and lease losses, and (ii) the reserve for unfunded lending commitments. The allowance for loan and lease losses represents management’s estimate of losses inherent in the loan portfolio as of the balance sheet date and is recorded as a reduction to loans. The reserve for unfunded lending commitments represents management’s estimate of losses inherent in its unfunded loan commitments and is recorded in other liabilities on the consolidated balance sheet. The reserve for unfunded lending commitments was $171,000 at September 30, 2018 and $105,000 at December 31, 2017. The allowance is increased by the provision for loan and lease losses, and decreased by charge-offs, net of recoveries. Loans deemed to be uncollectible are charged against the allowance, and subsequent recoveries, if any, are credited to the allowance. All, or part, of the principal balance of loans are charged off to the allowance as soon as it is determined that the repayment of all, or part, of the principal balance is highly unlikely. Non-residential consumer loans are generally charged off no later than 120 days past due on a contractual basis, earlier in the event of bankruptcy, or if there is an amount deemed uncollectible. Because all identified losses are immediately charged off, no portion of the allowance is restricted to any individual loan or groups of loans, and the entire allowance is available to absorb any and all loan losses. The allowance is maintained at a level considered by management to be adequate to provide for losses that can be reasonably anticipated. Management performs a monthly evaluation of the adequacy of the allowance. The allowance is based on Mid Penn’s past loan loss experience, known and inherent risks in the portfolio, adverse situations that may affect the borrower’s ability to repay, the estimated value of any underlying collateral, composition of the loan portfolio, current economic conditions, and other relevant factors. This evaluation is inherently subjective as it requires material estimates that may be susceptible to significant revision as more information becomes available. The allowance consists of specific, general and unallocated components. The specific component relates to loans that are classified as impaired. For loans that are classified as impaired, an allowance is established when the discounted cash flows, collateral value, or observable market price of the impaired loan is lower than the carrying value of that loan. The general component covers pools of loans by loan class including commercial loans not considered impaired, as well as smaller balance homogeneous loans, such as residential real estate, home equity and other consumer loans. These pools of loans are evaluated for loss exposure based upon historical loss rates for each of these categories of loans, adjusted for qualitative factors. These qualitative risk factors include changes in economic conditions, fluctuations in loan quality measures, changes in collateral values, changes in the experience of the lending staff and loan review systems, changes in lending policies and procedures (including underwriting standards), changes in the mix and volume of loans originated, the effect of other external factors such as competition and legal and regulatory requirements on the level of estimated credit losses in the existing loan portfolio, shifting industry or portfolio concentrations, and other relevant factors. Each factor is assigned a value to reflect improving, stable or declining conditions based on management’s best judgment using relevant information available at the time of the evaluation. Adjustments to the factors are supported through documentation of changes in conditions in a narrative accompanying the allowance for loan loss calculation. The unallocated component of the allowance for loan and lease losses covers several considerations that are not specifically measureable through either the specific and general components. For example, at times Mid Penn could face increasing credit risks and uncertainties, not yet reflected in recent historical losses or qualitative factor assessments, associated with unpredictable changes in economic growth or business conditions in our markets or for certain industries in which we have commercial loan borrowers, or unanticipated stresses to the values of real estate held as collateral. Any or all of these additional issues can adversely affect our borrowers’ ability to timely repay their loans. Additionally, we have experienced continued strong commercial loan growth, including growth in newer markets where we have less of a loss history. Also, the unallocated component allocation recognizes the inherent imprecision in our allowance for loan and lease loss methodology, or any alternative methodology, for estimating specific and general loan losses, including the unpredictable timing and amounts of charge-offs, the fact that historical loss averages don’t necessarily correlate to future loss trends, and unexpected changes to specific-credit or general portfolio future cash flows and collateral values which could negatively impact unimpaired portfolio loss factors. Mid Penn generally considers a commercial loan (consisting of commercial and industrial, commercial real estate, commercial real estate-construction, and lease financing loan classes) to be impaired when it becomes 90 days or more past due and not in the process of collection, or sooner when it is probable that Mid Penn will be unable to collect all contractual principal and interest due. This methodology assumes the borrower cannot or will not continue to make additional payments. At that time, the loan would generally be considered collateral dependent as the discounted cash flow method would generally indicate no operating income available for evaluating the collateral position; therefore, most impaired loans are deemed to be collateral dependent. In addition, Mid Penn’s rating system assumes any loans classified as nonaccrual, included in the substandard rating, to be impaired, and most of these loans are considered collateral dependent; therefore, most of Mid Penn’s impaired loans, whether reporting a specific allocation or not, are considered collateral dependent. Mid Penn evaluates loans for charge-off on a monthly basis. Policies that govern the recommendation for charge-off are unique to the type of loan being considered. Commercial loans rated as substandard nonaccrual or lower will first have a collateral evaluation completed in accordance with the guidance on impaired loans. Once the collateral evaluation has been completed, a specific allocation of allowance is made based upon the results of the evaluation. The remaining balance remains a nonperforming loan with the original terms and interest rate intact (not restructured). In the event the loan is unsecured, the loan would have been charged-off at the recognition of impairment. Commercial real estate loans rated as impaired will also have an initial collateral evaluation completed in accordance with the guidance on impaired loans. An updated real estate valuation is ordered and the collateral evaluation is modified to reflect any variations in value. A specific allocation of allowance is made for any anticipated collateral shortfall. The remaining balance remains a nonperforming loan with the original terms and interest rate intact (not restructured). The process of charging off a residential mortgage loan begins when a loan becomes delinquent for 90 days and is not in the process of collection. The existing appraisal is reviewed and a lien search is obtained to determine lien position and any instances of intervening liens. A new appraisal of the property will be ordered if deemed necessary by management and a collateral evaluation is completed. The loan will then be charged down to the value indicated in the evaluation. Consumer loans (including home equity loans and other consumer loans) are recommended for charge-off after reaching delinquency of 90 days and the loan is not well-secured or otherwise not probable for collection. The collateral shortfall of the consumer loan is recommended for charge-off at this point. As noted above, Mid Penn assesses a specific allocation for commercial loans and commercial real estate loans. The remaining balance remains a nonperforming loan with the original terms and interest rate intact (not restructured). In addition, Mid Penn takes a preemptive step when any commercial loan becomes classified under its internal classification system. A preliminary collateral evaluation, in accordance with the guidance on impaired loans, is prepared using the existing collateral information in the loan file. This process allows Mid Penn to review both the credit and documentation files to determine the status of the information needed to make a collateral evaluation. This collateral evaluation is preliminary, but allows Mid Penn to determine if any potential collateral shortfalls exist. It is Mid Penn’s policy to obtain updated third party valuations on all impaired loans collateralized by real estate as soon as practically possible following the credit being classified as substandard nonaccrual. Prior to receipt of the updated real estate valuation, Mid Penn will use any existing real estate valuation to determine any potential allowance issues; however, no allowance recommendation will be made until such time Mid Penn is in receipt of the updated valuation. The Asset Recovery department employs an electronic tracking system to monitor the receipt of and need for updated appraisals. To date, there have been no material time lapses noted with the above processes. In some instances Mid Penn is not holding real estate as collateral and is relying on business assets (personal property) for repayment. In these circumstances a collateral inspection is performed by Mid Penn personnel to determine an estimated value. The value is based on net book value, as provided by the financial statements, and discounted accordingly based on determinations made by management. Occasionally, Mid Penn will employ an outside service to provide a fair estimate of value based on auction sales or private sales. Management reviews the estimates of these third parties and discounts them accordingly based on management’s judgment, if deemed necessary. For impaired loans with no valuation allowance required, Mid Penn’s practice of obtaining independent third party market valuations on the subject property as soon as practically possible following the credit being placed on nonaccrual status sometimes indicates that the loan to value ratio is sufficient to obviate the need for a specific allocation in spite of significant deterioration in real estate values in Mid Penn’s primary market area. These circumstances are determined on a case by case analysis of the impaired loans. Mid Penn actively monitors the values of collateral on impaired loans. This monitoring may require the modification of collateral values over time or changing circumstances by some factor, either positive or negative, from the original values. All collateral values will be assessed by management at least every 12 months for possible revaluation by an independent third party. Large groups of smaller balance homogeneous loans are collectively evaluated for impairment. Accordingly, Mid Penn does not separately identify individual residential mortgage loans, home equity loans and other consumer loans for impairment disclosures, unless such loans are the subject of a troubled debt restructuring agreement. Loans whose terms are modified are classified as troubled debt restructurings if the borrowers have been granted concessions and it is deemed that those borrowers are experiencing financial difficulty. Concessions granted under a troubled debt restructuring generally involve a temporary reduction in interest rate or an extension of a loan’s stated maturity date. Nonaccrual troubled debt restructurings are restored to accrual status if principal and interest payments, under the modified terms, are current for nine consecutive months after modification. Loans classified as troubled debt restructurings are designated as impaired. The allowance calculation methodology includes further segregation of loan classes into risk rating categories. The borrower’s overall financial condition, repayment sources, guarantors, and value of collateral, if appropriate, are evaluated annually for commercial loans or when credit deficiencies arise, such as delinquent loan payments. Credit quality risk ratings include regulatory classifications of special mention, substandard, doubtful, and loss. Loans criticized as special mention have potential weaknesses that deserve management’s close attention. If uncorrected, the potential weaknesses may result in deterioration of the repayment prospects. Loans classified substandard have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They include loans that are inadequately protected by the current sound net worth and paying capacity of the obligor or of the collateral pledged, if any. Loans classified doubtful have all the weaknesses inherent in loans classified substandard with the added characteristic that collection or liquidation in full, on the basis of current conditions and facts, is highly improbable. Loans classified as a loss are considered uncollectible and are charged to the allowance for loan losses. Any loans not classified as noted above are rated pass. In addition, Federal and State regulatory agencies, as an integral part of their examination process, periodically review the Bank’s allowance and may require the Bank to recognize additions to the allowance based on their judgments about information available to them at the time of their examination, which may not be currently available to management. Based on management’s comprehensive analysis of the loan portfolio, management believes the current level of the allowance for loan losses is adequate. Acquired Loans Loans that Mid Penn acquires in connection with business combinations are recorded at fair value with no carryover of the existing related allowance for loan losses. Fair value of the loans involves estimating the amount and timing of principal and interest cash flows expected to be collected on the loans and discounting those cash flows at a market rate of interest. The excess of cash flows expected at acquisition over the estimated fair value is referred to as the accretable discount and is recognized into interest income over the remaining life of the loan. The difference between contractually required payments at acquisition and the cash flows expected to be collected at acquisition is referred to as the nonaccretable discount. These loans are accounted for under the ASC 310-30, Loans and Debt Securities Acquired with Deteriorated Credit Quality. The nonaccretable discount includes estimated future credit losses expected to be incurred over the life of the loan. Subsequent decreases to the expected cash flows will require Mid Penn to evaluate the need for an additional allowance. Subsequent improvement in expected cash flows will result in the reversal of a corresponding amount of the nonaccretable discount which Mid Penn will then reclassify as accretable discount that will be recognized into interest income over the remaining life of the loan. Loans acquired through business combinations that meet the specific criteria of ASC 310-30 are individually evaluated each period to analyze expected cash flows. To the extent that the expected cash flows of a loan have decreased due to credit deterioration, Mid Penn establishes an allowance. Loans acquired through business combinations that do not meet the specific criteria of ASC 310-30 are accounted for under ASC 310-20. These loans are initially recorded at fair value, and include credit and interest rate marks associated with acquisition accounting adjustments. Purchase premiums or discounts are subsequently amortized as an adjustment to yield over the estimated contractual lives of the loans. There is no allowance for loan losses established at the acquisition date for acquired performing loans. An allowance for loan losses is recorded for any credit deterioration in these loans subsequent to acquisition. Acquired loans that met the criteria for impaired or nonaccrual of interest prior to the acquisition may be considered performing upon acquisition, regardless of whether the customer is contractually delinquent, if Mid Penn expects to fully collect the new carrying value (i.e. fair value) of the loans. As such, Mid Penn may no longer consider the loan to be nonaccrual or nonperforming and may accrue interest on these loans, including the impact of any accretable discount. In addition, charge-offs on such loans would be first applied to the nonaccretable difference portion of the fair value adjustment. The classes of the loan portfolio, summarized by the pass rating (net of deferred fees and costs of $443,000 as of September 30, 2018 and $464,000 as of December 31, 2017), and the classified ratings of special mention and substandard within Mid Penn’s internal risk rating system as of September 30, 2018 and December 31, 2017, are as follows:
(Dollars in thousands) |  |  |  | Special |  |  |  |  |  |
September 30, 2018 |  | Pass |  |  | Mention |  |  | Substandard |  |  | Total |
Commercial and industrial |  | $ | 259,870 |  |  | $ | 2,106 |  |  | $ | 7,174 |  |  | $ | 269,150 |
Commercial real estate |  |  | 801,897 |  |  |  | 1,917 |  |  |  | 9,008 |  |  |  | 812,822 |
Commercial real estate - construction |  |  | 145,001 |  |  |  | — |  |  |  | 367 |  |  |  | 145,368 |
Lease financing |  |  | 132 |  |  |  | — |  |  |  | — |  |  |  | 132 |
Residential mortgage |  |  | 252,997 |  |  |  | 148 |  |  |  | 2,241 |  |  |  | 255,386 |
Home equity |  |  | 73,753 |  |  |  | — |  |  |  | 96 |  |  |  | 73,849 |
Consumer |  |  | 10,579 |  |  |  | — |  |  |  | — |  |  |  | 10,579 |
|  | $ | 1,544,229 |  |  | $ | 4,171 |  |  | $ | 18,886 |  |  | $ | 1,567,286 |
(Dollars in thousands) |  |  |  |  |  | Special |  |  |  |  |  |  |  |  |
December 31, 2017 |  | Pass |  |  | Mention |  |  | Substandard |  |  | Total |
Commercial and industrial |  | $ | 182,168 |  |  | $ | 453 |  |  | $ | 5,412 |  |  | $ | 188,033 |
Commercial real estate |  |  | 505,397 |  |  |  | 1,435 |  |  |  | 8,180 |  |  |  | 515,012 |
Commercial real estate - construction |  |  | 61,667 |  |  |  | 182 |  |  |  | 487 |  |  |  | 62,336 |
Lease financing |  |  | 229 |  |  |  | — |  |  |  | — |  |  |  | 229 |
Residential mortgage |  |  | 97,814 |  |  |  | 157 |  |  |  | 1,062 |  |  |  | 99,033 |
Home equity |  |  | 41,479 |  |  |  | 105 |  |  |  | 309 |  |  |  | 41,893 |
Consumer |  |  | 3,868 |  |  |  | — |  |  |  | — |  |  |  | 3,868 |
|  | $ | 892,622 |  |  | $ | 2,332 |  |  | $ | 15,450 |  |  | $ | 910,404 |
Mid Penn had no loans classified as doubtful as of September 30, 2018 and December 31, 2017. Impaired loans by loan portfolio class as of September 30, 2018 and December 31, 2017 are summarized as follows:
|  | September 30, 2018 |  |  | December 31, 2017 |
(Dollars in thousands) |  | Recorded Investment |  |  | Unpaid Principal Balance |  |  | Related Allowance |  |  | Recorded Investment |  |  | Unpaid Principal Balance |  |  | Related Allowance |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | 13 |  |  | $ | — |
Commercial real estate |  |  | 2,033 |  |  |  | 2,553 |  |  |  | — |  |  |  | 3,424 |  |  |  | 4,056 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 832 |  |  |  | 940 |  |  |  | — |  |  |  | 760 |  |  |  | 877 |  |  |  | — |
Home equity |  |  | 25 |  |  |  | 126 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 28 |  |  | $ | 28 |  |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,456 |  |  |  | 1,456 |  |  |  | — |  |  |  | 555 |  |  |  | 555 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,264 |  |  |  | 1,264 |  |  |  | — |  |  |  | 306 |  |  |  | 306 |  |  |  | — |
Home equity |  |  | 4 |  |  |  | 4 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,527 |  |  | $ | 4,635 |  |  | $ | 489 |  |  | $ | 4,434 |  |  | $ | 4,460 |  |  | $ | 136 |
Commercial real estate |  |  | 857 |  |  |  | 872 |  |  |  | 243 |  |  |  | 1,423 |  |  |  | 1,589 |  |  |  | 293 |
Commercial real estate - construction |  |  | 367 |  |  |  | 370 |  |  |  | 38 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,555 |  |  | $ | 4,663 |  |  | $ | 489 |  |  | $ | 4,434 |  |  | $ | 4,473 |  |  | $ | 136 |
Commercial real estate |  |  | 4,346 |  |  |  | 4,881 |  |  |  | 243 |  |  |  | 5,402 |  |  |  | 6,200 |  |  |  | 293 |
Commercial real estate - construction |  |  | 367 |  |  |  | 370 |  |  |  | 38 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 2,096 |  |  |  | 2,204 |  |  |  | — |  |  |  | 1,066 |  |  |  | 1,183 |  |  |  | — |
Home equity |  |  | 29 |  |  |  | 130 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
The average recorded investment of impaired loans and related interest income recognized for the three and nine months ended September 30, 2018 and 2017 are summarized as follows:
|  | Three Months Ended |
|  | September 30, 2018 |  |  | September 30, 2017 |
(Dollars in thousands) |  | Average Recorded Investment |  |  | Interest Income Recognized |  |  | Average Recorded Investment |  |  | Interest Income Recognized |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,872 |  |  |  | — |  |  |  | 751 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 42 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 780 |  |  |  | 11 |  |  |  | 847 |  |  |  | — |
Home equity |  |  | 17 |  |  |  | — |  |  |  | 294 |  |  |  | 3 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 24 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,470 |  |  |  | 7 |  |  |  | 570 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 677 |  |  |  | — |  |  |  | 318 |  |  |  | — |
Home equity |  |  | 1 |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,425 |  |  | $ | — |  |  | $ | 2,230 |  |  | $ | — |
Commercial real estate |  |  | 703 |  |  |  | — |  |  |  | 2,148 |  |  |  | — |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 487 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | 66 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,449 |  |  | $ | — |  |  | $ | 2,230 |  |  | $ | — |
Commercial real estate |  |  | 4,045 |  |  |  | 7 |  |  |  | 3,469 |  |  |  | — |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 529 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,457 |  |  |  | 11 |  |  |  | 1,231 |  |  |  | — |
Home equity |  |  | 18 |  |  |  | — |  |  |  | 294 |  |  |  | 3 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
|  | Nine Months Ended |
|  | September 30, 2018 |  |  | September 30, 2017 |
(Dollars in thousands) |  | Average Recorded Investment |  |  | Interest Income Recognized |  |  | Average Recorded Investment |  |  | Interest Income Recognized |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | — |  |  | $ | — |  |  | $ | 16 |  |  | $ | — |
Commercial real estate |  |  | 3,040 |  |  |  | 3 |  |  |  | 551 |  |  |  | 279 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 164 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 769 |  |  |  | 27 |  |  |  | 852 |  |  |  | 18 |
Home equity |  |  | 148 |  |  |  | — |  |  |  | 184 |  |  |  | 5 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 21 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,365 |  |  |  | 23 |  |  |  | 682 |  |  |  | 110 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 726 |  |  |  | — |  |  |  | 339 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,424 |  |  | $ | — |  |  | $ | 892 |  |  | $ | — |
Commercial real estate |  |  | 456 |  |  |  | — |  |  |  | 2,446 |  |  |  | — |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 390 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | 53 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,445 |  |  | $ | — |  |  | $ | 908 |  |  | $ | — |
Commercial real estate |  |  | 4,861 |  |  |  | 26 |  |  |  | 3,679 |  |  |  | 389 |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 554 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,495 |  |  |  | 27 |  |  |  | 1,244 |  |  |  | 18 |
Home equity |  |  | 148 |  |  |  | — |  |  |  | 184 |  |  |  | 5 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Nonaccrual loans by loan portfolio class as of September 30, 2018 and December 31, 2017 are summarized as follows:
(Dollars in thousands) |  | September 30, 2018 |  |  | December 31, 2017 |
Commercial and industrial |  | $ | 4,555 |  |  | $ | 4,434 |
Commercial real estate |  |  | 3,910 |  |  |  | 4,902 |
Commercial real estate - construction |  |  | 367 |  |  |  | 487 |
Residential mortgage |  |  | 1,490 |  |  |  | 492 |
Home equity |  |  | 29 |  |  |  | 260 |
|  | $ | 10,351 |  |  | $ | 10,575 |
The performance and credit quality of the loan portfolio is also monitored by analyzing the age of the loans receivable as determined by the length of time a recorded payment is past due. As of September 30, 2018 and December 31, 2017, Mid Penn had no accruing loans past due greater than 90 days. The classes of the loan portfolio summarized by the past due status as of September 30, 2018 and December 31, 2017 are summarized as follows:
(Dollars in thousands) |  | 30-59 |  |  | 60-89 |  |  | Greater |  |  |  |  |  |  |  |  |  |  |  |  |
|  | Days Past |  |  | Days Past |  |  | than 90 |  |  | Total Past |  |  |  |  |  |  |  |  |
September 30, 2018 |  | Due |  |  | Due |  |  | Days |  |  | Due |  |  | Current |  |  | Total Loans |
Commercial and industrial |  | $ | - |  |  | $ | 4 |  |  | $ | 4,302 |  |  | $ | 4,306 |  |  | $ | 264,816 |  |  | $ | 269,122 |
Commercial real estate |  |  | 710 |  |  |  | — |  |  |  | 273 |  |  |  | 983 |  |  |  | 810,383 |  |  |  | 811,366 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 367 |  |  |  | 367 |  |  |  | 145,001 |  |  |  | 145,368 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 132 |  |  |  | 132 |
Residential mortgage |  |  | 409 |  |  |  | — |  |  |  | 290 |  |  |  | 699 |  |  |  | 253,423 |  |  |  | 254,122 |
Home equity |  |  | 24 |  |  |  | 25 |  |  |  | 19 |  |  |  | 68 |  |  |  | 73,777 |  |  |  | 73,845 |
Consumer |  |  | — |  |  |  | 18 |  |  |  | — |  |  |  | 18 |  |  |  | 10,561 |  |  |  | 10,579 |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | — |  |  |  | 23 |  |  |  | — |  |  |  | 23 |  |  |  | 5 |  |  |  | 28 |
Commercial real estate |  |  | — |  |  |  | — |  |  |  | 991 |  |  |  | 991 |  |  |  | 465 |  |  |  | 1,456 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | - |  |  |  | - |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | 237 |  |  |  | 237 |  |  |  | 1,027 |  |  |  | 1,264 |
Home equity |  |  | — |  |  |  | — |  |  |  | 4 |  |  |  | 4 |  |  |  | - |  |  |  | 4 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | - |  |  |  | - |
Total |  | $ | 1,143 |  |  | $ | 70 |  |  | $ | 6,483 |  |  | $ | 7,696 |  |  | $ | 1,559,590 |  |  | $ | 1,567,286 |
(Dollars in thousands) |  | 30-59 |  |  | 60-89 |  |  | Greater |  |  |  |  |  |  |  |  |  |  |  |  |
|  | Days Past |  |  | Days Past |  |  | than 90 |  |  | Total Past |  |  |  |  |  |  |  |  |
December 31, 2017 |  | Due |  |  | Due |  |  | Days |  |  | Due |  |  | Current |  |  | Total Loans |
Commercial and industrial |  | $ | 4,439 |  |  | $ | 16 |  |  | $ | - |  |  | $ | 4,455 |  |  | $ | 183,578 |  |  | $ | 188,033 |
Commercial real estate |  |  | - |  |  |  | - |  |  |  | 3,669 |  |  |  | 3,669 |  |  |  | 510,788 |  |  |  | 514,457 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | 487 |  |  |  | 487 |  |  |  | 61,849 |  |  |  | 62,336 |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 229 |  |  |  | 229 |
Residential mortgage |  |  | 310 |  |  |  | 467 |  |  |  | 177 |  |  |  | 954 |  |  |  | 97,773 |  |  |  | 98,727 |
Home equity |  |  | 54 |  |  |  | 98 |  |  |  | 250 |  |  |  | 402 |  |  |  | 41,491 |  |  |  | 41,893 |
Consumer |  |  | 3 |  |  |  | - |  |  |  | - |  |  |  | 3 |  |  |  | 3,865 |  |  |  | 3,868 |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Commercial real estate |  |  | 500 |  |  |  | - |  |  |  | 55 |  |  |  | 555 |  |  |  | - |  |  |  | 555 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | - |  |  |  | 31 |  |  |  | 193 |  |  |  | 224 |  |  |  | 82 |  |  |  | 306 |
Home equity |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Total |  | $ | 5,306 |  |  | $ | 612 |  |  | $ | 4,831 |  |  | $ | 10,749 |  |  | $ | 899,655 |  |  | $ | 910,404 |
The following tables summarize the allowance and recorded investments in loans receivable.
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the three months ended, September 30, 2018 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
July 1, 2018 |  | $ | 2,120 |  |  | $ | 4,723 |  |  | $ | 146 |  |  | $ | - |  |  | $ | 441 |  |  | $ | 420 |  |  | $ | 4 |  |  | $ | 335 |  |  | $ | 8,189 |
Charge-offs |  |  | (12 | ) |  |  | (34 | ) |  |  | - |  |  |  | - |  |  |  | (10 | ) |  |  | - |  |  |  | (11 | ) |  |  | - |  |  |  | (67 | )
Recoveries |  |  | - |  |  |  | 2 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 5 |  |  |  | - |  |  |  | 7 |
Provisions |  |  | 232 |  |  |  | 130 |  |  |  | (12 | ) |  |  | - |  |  |  | 38 |  |  |  | 16 |  |  |  | 7 |  |  |  | (311 | ) |  |  | 100 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2018 |  | $ | 2,340 |  |  | $ | 4,821 |  |  | $ | 134 |  |  | $ | - |  |  | $ | 469 |  |  | $ | 436 |  |  | $ | 5 |  |  | $ | 24 |  |  | $ | 8,229 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the nine months ended, September 30, 2018 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
January 1, 2018 |  | $ | 1,795 |  |  | $ | 4,435 |  |  | $ | 178 |  |  | $ | - |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,606 |
Charge-offs |  |  | (142 | ) |  |  | (34 | ) |  |  | (40 | ) |  |  | - |  |  |  | (14 | ) |  |  | (167 | ) |  |  | (21 | ) |  |  | - |  |  |  | (418 | )
Recoveries |  |  | 1 |  |  |  | 807 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 8 |  |  |  | - |  |  |  | 816 |
Provisions |  |  | 686 |  |  |  | (387 | ) |  |  | (4 | ) |  |  | - |  |  |  | 55 |  |  |  | 180 |  |  |  | 15 |  |  |  | (320 | ) |  |  | 225 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2018 |  |  | 2,340 |  |  |  | 4,821 |  |  |  | 134 |  |  |  | - |  |  |  | 469 |  |  |  | 436 |  |  |  | 5 |  |  |  | 24 |  |  |  | 8,229 |
Individually evaluated for impairment |  |  | 489 |  |  |  | 243 |  |  |  | 38 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 770 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 1,851 |  |  | $ | 4,578 |  |  | $ | 96 |  |  | $ | - |  |  | $ | 469 |  |  | $ | 436 |  |  | $ | 5 |  |  | $ | 24 |  |  | $ | 7,459 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 269,150 |  |  | $ | 812,822 |  |  | $ | 145,368 |  |  | $ | 132 |  |  | $ | 255,386 |  |  | $ | 73,849 |  |  | $ | 10,579 |  |  | $ | - |  |  | $ | 1,567,286 |
Ending balance: individually evaluated for impairment |  |  | 4,527 |  |  |  | 2,890 |  |  |  | 367 |  |  |  | - |  |  |  | 832 |  |  |  | 25 |  |  |  | - |  |  |  | - |  |  |  | 8,641 |
Ending balance: acquired with credit deterioration |  |  | 28 |  |  |  | 1,456 |  |  |  | - |  |  |  | - |  |  |  | 1,264 |  |  |  | 4 |  |  |  | - |  |  |  | - |  |  |  | 2,752 |
Ending balance: collectively evaluated for impairment |  | $ | 264,595 |  |  | $ | 808,476 |  |  | $ | 145,001 |  |  | $ | 132 |  |  | $ | 253,290 |  |  | $ | 73,820 |  |  | $ | 10,579 |  |  | $ | - |  |  | $ | 1,555,893 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2017 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
January 1, 2017 |  | $ | 1,795 |  |  | $ | 4,435 |  |  | $ | 178 |  |  | $ | - |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,606 |
individually evaluated for impairment |  |  | 136 |  |  |  | 293 |  |  |  | 100 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 529 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 1,659 |  |  | $ | 4,142 |  |  | $ | 78 |  |  | $ | - |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,077 |
Loans receivable: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
January 1, 2017 |  | $ | 188,033 |  |  | $ | 515,012 |  |  | $ | 62,336 |  |  | $ | 229 |  |  | $ | 99,033 |  |  | $ | 41,893 |  |  | $ | 3,868 |  |  | $ | - |  |  | $ | 910,404 |
Individually evaluated for impairment |  |  | 4,434 |  |  |  | 4,847 |  |  |  | 487 |  |  |  | - |  |  |  | 760 |  |  |  | 260 |  |  |  | - |  |  |  | - |  |  |  | 10,788 |
Acquired with credit deterioration |  |  | - |  |  |  | 555 |  |  |  | - |  |  |  | - |  |  |  | 306 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 861 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 183,599 |  |  | $ | 509,610 |  |  | $ | 61,849 |  |  | $ | 229 |  |  | $ | 97,967 |  |  | $ | 41,633 |  |  | $ | 3,868 |  |  | $ | - |  |  | $ | 898,755 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the three months ended, September 30, 2017 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
July 1, 2017 |  | $ | 1,628 |  |  | $ | 4,981 |  |  | $ | 140 |  |  | $ | 1 |  |  | $ | 539 |  |  | $ | 404 |  |  | $ | 4 |  |  | $ | 16 |  |  | $ | 7,713 |
Charge-offs |  |  | - |  |  |  | (207 | ) |  |  | - |  |  |  | - |  |  |  | (7 | ) |  |  | (20 | ) |  |  | (5 | ) |  |  | - |  |  |  | (239 | )
Recoveries |  |  | 5 |  |  |  | 22 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 1 |  |  |  | - |  |  |  | 28 |
Provisions |  |  | 166 |  |  |  | (326 | ) |  |  | 36 |  |  |  | (1 | ) |  |  | 7 |  |  |  | 53 |  |  |  | 5 |  |  |  | 60 |  |  |  | - |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2017 |  | $ | 1,799 |  |  | $ | 4,470 |  |  | $ | 176 |  |  | $ | - |  |  | $ | 539 |  |  | $ | 437 |  |  | $ | 5 |  |  | $ | 76 |  |  | $ | 7,502 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the nine months ended, September 30, 2017 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
January 1, 2017 |  | $ | 1,580 |  |  | $ | 4,323 |  |  | $ | 144 |  |  | $ | 1 |  |  | $ | 541 |  |  | $ | 379 |  |  | $ | 3 |  |  | $ | 212 |  |  | $ | 7,183 |
Charge-offs |  |  | (12 | ) |  |  | (237 | ) |  |  | - |  |  |  | - |  |  |  | (25 | ) |  |  | (20 | ) |  |  | (21 | ) |  |  | - |  |  |  | (315 | )
Recoveries |  |  | 11 |  |  |  | 383 |  |  |  | - |  |  |  | - |  |  |  | 4 |  |  |  | 5 |  |  |  | 6 |  |  |  | - |  |  |  | 409 |
Provisions |  |  | 220 |  |  |  | 1 |  |  |  | 32 |  |  |  | (1 | ) |  |  | 19 |  |  |  | 73 |  |  |  | 17 |  |  |  | (136 | ) |  |  | 225 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2017 |  |  | 1,799 |  |  |  | 4,470 |  |  |  | 176 |  |  |  | - |  |  |  | 539 |  |  |  | 437 |  |  |  | 5 |  |  |  | 76 |  |  |  | 7,502 |
Individually evaluated for impairment |  |  | 150 |  |  |  | 375 |  |  |  | 100 |  |  |  | - |  |  |  | 66 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 691 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 1,649 |  |  | $ | 4,095 |  |  | $ | 76 |  |  | $ | - |  |  | $ | 473 |  |  | $ | 437 |  |  | $ | 5 |  |  | $ | 76 |  |  | $ | 6,811 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 182,857 |  |  | $ | 490,603 |  |  | $ | 58,074 |  |  | $ | 259 |  |  | $ | 101,073 |  |  | $ | 40,350 |  |  | $ | 4,170 |  |  | $ | - |  |  | $ | 877,386 |
Ending balance: individually evaluated for impairment |  |  | 4,460 |  |  |  | 2,148 |  |  |  | 487 |  |  |  | - |  |  |  | 856 |  |  |  | 261 |  |  |  | - |  |  |  | - |  |  |  | 8,212 |
Ending balance: acquired with credit deterioration |  |  | - |  |  |  | 569 |  |  |  | - |  |  |  | - |  |  |  | 315 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 884 |
Ending balance: collectively evaluated for impairment |  | $ | 178,397 |  |  | $ | 487,886 |  |  | $ | 57,587 |  |  | $ | 259 |  |  | $ | 99,902 |  |  | $ | 40,089 |  |  | $ | 4,170 |  |  | $ | - |  |  | $ | 868,290 |
The recorded investments in troubled debt restructured loans at September 30, 2018 and December 31, 2017 are as follows:
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
September 30, 2018 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,303 |
Commercial real estate |  | 2,940 |  |  |  | 2,841 |  |  |  | 2,229 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 522 |
Home equity |  | 14 |  |  |  | 14 |  |  |  | 2 |
| $ | 7,741 |  |  | $ | 7,990 |  |  | $ | 7,056 |
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2017 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,434 |
Commercial real estate |  | 5,735 |  |  |  | 5,581 |  |  |  | 4,593 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 540 |
Home equity |  | 14 |  |  |  | 14 |  |  |  | 4 |
| $ | 10,536 |  |  | $ | 10,730 |  |  | $ | 9,571 |
Mid Penn entered into forbearance or modification agreements on all loans currently classified as troubled debt restructures and all of these agreements have resulted in additional principal repayment. The terms of these forbearance agreements vary whereby principal payments have been decreased, interest rates have been reduced and/or the loan will be repaid as collateral is sold. Mid Penn’s troubled debt restructured loans at September 30, 2018 totaled $7,056,000, and included four loans totaling $524,000 representing accruing impaired loans to unrelated borrowers in compliance with the terms of the modification, with three loans being accruing impaired residential mortgages to unrelated borrowers totaling $522,000 and one loan being an accruing impaired home equity loan of $2,000. The remaining $6,532,000 of troubled debt restructurings was attributable to ten loans among five relationships which were classified as nonaccrual impaired based upon a collateral evaluation in accordance with the guidance on impaired loans. Two large relationships accounted for $5,463,000 of the total $6,532,000 in nonaccrual impaired troubled debt restructured loans. At December 31, 2017, Mid Penn’s troubled debt restructured loans totaled $9,571,000, and included four loans totaling $544,000 representing accruing impaired loans in compliance with the terms of the modification, with three loans being accruing impaired residential mortgages to unrelated borrowers totaling $540,000, and one loan being an accruing impaired home equity loan of $4,000. The remaining $9,027,000 of troubled debt restructured loans is attributable to fifteen loans among seven relationships, which were classified as nonaccrual impaired based upon a collateral evaluation in accordance with the guidance on impaired loans. Two large relationships accounted for $7,284,000 of the $9,027,000 in nonaccrual impaired troubled debt restructured loans. As of December 31, 2017, there was $66,000 of charge-offs associated with troubled debt restructured loans while under a forbearance agreement. As of December 31, 2017, there were no defaulted troubled debt restructured loans, as all troubled debt restructured loans were current with respect to their associated forbearance agreements. There were also no defaults on troubled debt restructured loans within twelve months of restructure during 2017. One nonaccrual commercial real estate relationship was modified as a troubled debt restructured loan during the three and nine months ended September 30, 2018. The pre-modification and post-modification recorded investment balances for this loan were $270,000. The loan was modified to require payments of interest only for a period of six months. No charge-offs were taken at the time of modification, and the September 30, 2018 recorded investment balance of this loan was $270,000. Two troubled debt restructured loans were added during the three and nine months ended September 30, 2017. One nonaccrual impaired commercial and industrial troubled debt restructured loan was added as a result of the consolidation of four existing Mid Penn Bank loans with a pre-modification outstanding recorded investment of $4,110,000, as well as other obligations of $350,000 with the same borrower. This loan had a post-modification recorded investment of $4,460,000, and a September 30, 2017 recorded investment amount of $4,460,000. No charge-offs were taken at the time of modification. One nonaccrual impaired commercial real estate loan was added with a pre-modification outstanding recorded investment of $362,000, a post-modification recorded investment of $300,000, and a September 30, 2017 recorded investment amount of $299,000. This modification consolidated two existing Mid Penn Bank loans. As a result of management evaluations as of September 30, 2018, December 31, 2017, and September 30, 2017, any specific allocations and charge-offs have been taken as deemed appropriate. There were no charge-offs associated with existing troubled debt restructured loan relationships for the three or nine months ended September 30, 2018. There were no troubled debt restructured loans that defaulted within twelve months of restructure during the three and nine months ended September 30, 2018 and 2017. As of September 30, 2018, Mid Penn had $1,027,000 of residential real estate held in other real estate owned. There were four consumer mortgage loans secured by residential real estate properties totaling $193,000 for which formal foreclosure proceedings were in process. As of December 31, 2017, Mid Penn had $42,000 of residential real estate held in other real estate owned, and $308,000 in loans for which formal foreclosure proceedings were in process. The following tables provide activity for the accretable yield of acquired impaired loans from the Phoenix Bancorp, Inc. (2015), Scottdale (January 2018), and First Priority (July 2018) acquisitions for the three and nine months ended September 30, 2018.
(Dollars in thousands) |  |
Accretable yield, July 1, 2018 |  | $ | 300 |
Acquisition of impaired loans |  |  | 125 |
Accretable yield amortized to interest income |  |  | (61 | )
Reclassification from nonaccretable difference (a) |  |  | - |
Accretable yield, September 30, 2018 |  | $ | 364 |
(Dollars in thousands) |  |
Accretable yield, January 1, 2018 |  | $ | 67 |
Acquisition of impaired loans |  | $ | 430 |
Accretable yield amortized to interest income |  |  | (133 | )
Reclassification from nonaccretable difference (a) |  |  | - |
Accretable yield, September 30, 2018 |  | $ | 364 |
| (a) | Reclassification from non-accretable difference represents an increase to the estimated cash flows to be collected on the underlying portfolio.

X
- References No definition available. + Details
Name: | us-gaap_AccountsNotesLoansAndFinancingReceivableGrossAllowanceAndNetAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The entire disclosure for claims held for amounts due a entity, excluding financing receivables. Examples include, but are not limited to, trade accounts receivables, notes receivables, loans receivables. Includes disclosure for allowance for credit losses. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=84173941&loc=d3e5074-111524 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(4)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(5)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=84173941&loc=d3e5162-111524 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=84173941&loc=d3e5066-111524 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(3)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(7)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(6)) -URI http://asc.fasb.org/extlink&oid=6488278&loc=d3e603758-122996 + Details
Name: | us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration