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

Loans and Allowance for Loan and Lease Losses | 3 Months Ended
--- | ---
Mar. 31, 2018
Accounts Notes Loans And Financing Receivable Gross Allowance And Net [Abstract] |
Loans and Allowance for Loan and Lease Losses |
(4) | 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 $107,000 at March 31, 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, we believe that we 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 $515,000 as of March 31, 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 March 31, 2018 and December 31, 2017, are as follows:
(Dollars in thousands) |  |  |  | Special |  |  |  |  |  |
March 31, 2018 |  | Pass |  |  | Mention |  |  | Substandard |  |  | Total |
Commercial and industrial |  | $ | 192,713 |  |  | $ | 793 |  |  | $ | 5,277 |  |  | $ | 198,783 |
Commercial real estate |  |  | 548,118 |  |  |  | 1,532 |  |  |  | 11,126 |  |  |  | 560,776 |
Commercial real estate - construction |  |  | 73,092 |  |  |  | 177 |  |  |  | 487 |  |  |  | 73,756 |
Lease financing |  |  | 194 |  |  |  | — |  |  |  | — |  |  |  | 194 |
Residential mortgage |  |  | 122,185 |  |  |  | 153 |  |  |  | 1,355 |  |  |  | 123,693 |
Home equity |  |  | 44,794 |  |  |  | 100 |  |  |  | 271 |  |  |  | 45,165 |
Consumer |  |  | 4,771 |  |  |  | — |  |  |  | — |  |  |  | 4,771 |
|  | $ | 985,867 |  |  | $ | 2,755 |  |  | $ | 18,516 |  |  | $ | 1,007,138 |
(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 March 31, 2018 and December 31, 2017. Impaired loans by loan portfolio class as of March 31, 2018 and December 31, 2017 are summarized as follows:
|  | March 31, 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 |  | $ | — |  |  | $ | 12 |  |  | $ | — |  |  | $ | — |  |  | $ | 13 |  |  | $ | — |
Commercial real estate |  |  | 3,588 |  |  |  | 4,233 |  |  |  | — |  |  |  | 3,424 |  |  |  | 4,056 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 669 |  |  |  | 790 |  |  |  | — |  |  |  | 760 |  |  |  | 877 |  |  |  | — |
Home equity |  |  | 183 |  |  |  | 294 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 23 |  |  | $ | 23 |  |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,443 |  |  |  | 1,443 |  |  |  | — |  |  |  | 555 |  |  |  | 555 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 689 |  |  |  | 689 |  |  |  | — |  |  |  | 306 |  |  |  | 306 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,374 |  |  | $ | 4,460 |  |  | $ | 265 |  |  | $ | 4,434 |  |  | $ | 4,460 |  |  | $ | 136 |
Commercial real estate |  |  | 1,389 |  |  |  | 1,577 |  |  |  | 281 |  |  |  | 1,423 |  |  |  | 1,589 |  |  |  | 293 |
Commercial real estate - construction |  |  | 487 |  |  |  | 492 |  |  |  | 93 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,397 |  |  | $ | 4,495 |  |  | $ | 265 |  |  | $ | 4,434 |  |  | $ | 4,473 |  |  | $ | 136 |
Commercial real estate |  |  | 6,420 |  |  |  | 7,253 |  |  |  | 281 |  |  |  | 5,402 |  |  |  | 6,200 |  |  |  | 293 |
Commercial real estate - construction |  |  | 487 |  |  |  | 492 |  |  |  | 93 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,358 |  |  |  | 1,479 |  |  |  | — |  |  |  | 1,066 |  |  |  | 1,183 |  |  |  | — |
Home equity |  |  | 183 |  |  |  | 294 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
The average recorded investment of impaired loans and related interest income recognized for the three months ended March 31, 2018 and 2017 are summarized as follows:
|  | Three Months Ended |
|  | March 31, 2018 |  |  | March 31, 2017 |
(Dollars in thousands) |  | Average Recorded Investment |  |  | Interest Income Recognized |  |  | Average Recorded Investment |  |  | Interest Income Recognized |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | - |  |  | $ | - |  |  | $ | 2 |  |  | $ | - |
Commercial real estate |  |  | 3,506 |  |  |  | - |  |  |  | 403 |  |  |  | 279 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | 617 |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | 714 |  |  |  | - |  |  |  | 864 |  |  |  | 11 |
Home equity |  |  | 222 |  |  |  | - |  |  |  | 122 |  |  |  | 2 |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | 17 |  |  |  | - |  |  |  | - |  |  |  | - |
Commercial real estate |  |  | 936 |  |  |  | - |  |  |  | 831 |  |  |  | - |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | 443 |  |  |  | - |  |  |  | 373 |  |  |  | - |
Home equity |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,404 |  |  | $ | - |  |  | $ | 35 |  |  | $ | - |
Commercial real estate |  |  | 1,406 |  |  |  | - |  |  |  | 2,676 |  |  |  | - |
Commercial real estate - construction |  |  | 487 |  |  |  | - |  |  |  | 241 |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | - |  |  |  | - |  |  |  | 67 |  |  |  | - |
Home equity |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,421 |  |  | $ | - |  |  | $ | 37 |  |  | $ | - |
Commercial real estate |  |  | 5,848 |  |  |  | - |  |  |  | 3,910 |  |  |  | 279 |
Commercial real estate - construction |  |  | 487 |  |  |  | - |  |  |  | 858 |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | 1,157 |  |  |  | - |  |  |  | 1,304 |  |  |  | 11 |
Home equity |  |  | 222 |  |  |  | - |  |  |  | 122 |  |  |  | 2 |
Nonaccrual loans by loan portfolio class as of March 31, 2018 and December 31, 2017 are summarized as follows:
(Dollars in thousands) |  | March 31, 2018 |  |  | December 31, 2017 |
Commercial and industrial |  | $ | 4,397 |  |  | $ | 4,434 |
Commercial real estate |  |  | 5,914 |  |  |  | 4,902 |
Commercial real estate - construction |  |  | 487 |  |  |  | 487 |
Residential mortgage |  |  | 1,352 |  |  |  | 492 |
Home equity |  |  | 183 |  |  |  | 260 |
|  | $ | 12,333 |  |  | $ | 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 March 31, 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 March 31, 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 |  |  |  |  |  |  |  |  |
March 31, 2018 |  | Due |  |  | Due |  |  | Days |  |  | Due |  |  | Current |  |  | Total Loans |
Commercial and industrial |  | $ | 4,378 |  |  | $ | - |  |  | $ | - |  |  | $ | 4,378 |  |  | $ | 194,382 |  |  | $ | 198,760 |
Commercial real estate |  |  | 544 |  |  |  | - |  |  |  | 960 |  |  |  | 1,504 |  |  |  | 557,829 |  |  |  | 559,333 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | 487 |  |  |  | 487 |  |  |  | 73,269 |  |  |  | 73,756 |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 194 |  |  |  | 194 |
Residential mortgage |  |  | 458 |  |  |  | 12 |  |  |  | 651 |  |  |  | 1,121 |  |  |  | 121,883 |  |  |  | 123,004 |
Home equity |  |  | 201 |  |  |  | - |  |  |  | 174 |  |  |  | 375 |  |  |  | 44,790 |  |  |  | 45,165 |
Consumer |  |  | 6 |  |  |  | 9 |  |  |  | - |  |  |  | 15 |  |  |  | 4,756 |  |  |  | 4,771 |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | - |  |  |  | - |  |  |  | 23 |  |  |  | 23 |  |  |  | - |  |  |  | 23 |
Commercial real estate |  |  | 506 |  |  |  | - |  |  |  | 909 |  |  |  | 1,415 |  |  |  | 28 |  |  |  | 1,443 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | 183 |  |  |  | - |  |  |  | 389 |  |  |  | 572 |  |  |  | 117 |  |  |  | 689 |
Home equity |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Total |  | $ | 6,276 |  |  | $ | 21 |  |  | $ | 3,593 |  |  | $ | 9,890 |  |  | $ | 997,248 |  |  | $ | 1,007,138 |
(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, March 31, 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 |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | (2 | ) |  |  | (76 | ) |  |  | (6 | ) |  |  | - |  |  |  | (84 | )
Recoveries |  |  | - |  |  |  | 17 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 2 |  |  |  | - |  |  |  | 19 |
Provisions |  |  | 182 |  |  |  | 201 |  |  |  | 5 |  |  |  | - |  |  |  | 26 |  |  |  | 44 |  |  |  | 5 |  |  |  | (338 | ) |  |  | 125 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
March 31, 2018 |  |  | 1,977 |  |  |  | 4,653 |  |  |  | 183 |  |  |  | - |  |  |  | 452 |  |  |  | 391 |  |  |  | 4 |  |  |  | 6 |  |  |  | 7,666 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
individually evaluated for impairment |  |  | 265 |  |  |  | 281 |  |  |  | 93 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 639 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 1,712 |  |  | $ | 4,372 |  |  | $ | 90 |  |  | $ | - |  |  | $ | 452 |  |  | $ | 391 |  |  | $ | 4 |  |  | $ | 6 |  |  | $ | 7,027 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 198,783 |  |  | $ | 560,776 |  |  | $ | 73,756 |  |  | $ | 194 |  |  | $ | 123,693 |  |  | $ | 45,165 |  |  | $ | 4,771 |  |  | $ | - |  |  | $ | 1,007,138 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
individually evaluated for impairment |  |  | 4,374 |  |  |  | 4,977 |  |  |  | 487 |  |  |  | - |  |  |  | 669 |  |  |  | 183 |  |  |  | - |  |  |  | - |  |  |  | 10,690 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
acquired with credit deterioration |  |  | 23 |  |  |  | 1,443 |  |  |  | - |  |  |  | - |  |  |  | 689 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 2,155 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 194,386 |  |  | $ | 554,356 |  |  | $ | 73,269 |  |  | $ | 194 |  |  | $ | 122,335 |  |  | $ | 44,982 |  |  | $ | 4,771 |  |  | $ | - |  |  | $ | 994,293 |
(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: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 1,795 |  |  | $ | 4,435 |  |  | $ | 178 |  |  | $ | - |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,606 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
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: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 188,033 |  |  | $ | 515,012 |  |  | $ | 62,336 |  |  | $ | 229 |  |  | $ | 99,033 |  |  | $ | 41,893 |  |  | $ | 3,868 |  |  | $ | - |  |  | $ | 910,404 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
individually evaluated for impairment |  |  | 4,434 |  |  |  | 4,847 |  |  |  | 487 |  |  |  | - |  |  |  | 760 |  |  |  | 260 |  |  |  | - |  |  |  | - |  |  |  | 10,788 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
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, March 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,580 |  |  | $ | 4,323 |  |  | $ | 144 |  |  | $ | 1 |  |  | $ | 541 |  |  | $ | 379 |  |  | $ | 3 |  |  | $ | 212 |  |  | $ | 7,183 |
Charge-offs |  |  | (12 | ) |  |  | - |  |  |  | - |  |  |  | - |  |  |  | (18 | ) |  |  | - |  |  |  | (6 | ) |  |  | - |  |  |  | (36 | )
Recoveries |  |  | 4 |  |  |  | 340 |  |  |  | - |  |  |  | - |  |  |  | 1 |  |  |  | - |  |  |  | 3 |  |  |  | - |  |  |  | 348 |
Provisions |  |  | 58 |  |  |  | 52 |  |  |  | (43 | ) |  |  | - |  |  |  | 8 |  |  |  | (15 | ) |  |  | 3 |  |  |  | 62 |  |  |  | 125 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
March 31, 2017 |  |  | 1,630 |  |  |  | 4,715 |  |  |  | 101 |  |  |  | 1 |  |  |  | 532 |  |  |  | 364 |  |  |  | 3 |  |  |  | 274 |  |  |  | 7,620 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
individually evaluated for impairment |  |  | 35 |  |  |  | 957 |  |  |  | 32 |  |  |  | - |  |  |  | 67 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 1,091 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 1,595 |  |  | $ | 3,758 |  |  | $ | 69 |  |  | $ | 1 |  |  | $ | 465 |  |  | $ | 364 |  |  | $ | 3 |  |  | $ | 274 |  |  | $ | 6,529 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 176,319 |  |  | $ | 464,077 |  |  | $ | 52,875 |  |  | $ | 358 |  |  | $ | 99,288 |  |  | $ | 38,538 |  |  | $ | 2,765 |  |  | $ | - |  |  | $ | 834,220 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
individually evaluated for impairment |  |  | 72 |  |  |  | 3,220 |  |  |  | 855 |  |  |  | - |  |  |  | 946 |  |  |  | 103 |  |  |  | - |  |  |  | - |  |  |  | 5,196 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
acquired with credit deterioration |  |  | - |  |  |  | 788 |  |  |  | - |  |  |  | - |  |  |  | 332 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 1,120 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
collectively evaluated for impairment |  | $ | 176,247 |  |  | $ | 460,069 |  |  | $ | 52,020 |  |  | $ | 358 |  |  | $ | 98,010 |  |  | $ | 38,435 |  |  | $ | 2,765 |  |  | $ | - |  |  | $ | 827,904 |
The recorded investments in troubled debt restructured loans at March 31, 2018 and December 31, 2017 are as follows:
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
March 31, 2018 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,374 |
Commercial real estate |  | 5,735 |  |  |  | 5,581 |  |  |  | 4,535 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 534 |
Home equity |  | 14 |  |  |  | 14 |  |  |  | 3 |
| $ | 10,536 |  |  | $ | 10,730 |  |  | $ | 9,446 |
(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 |  | 691 |  |  |  | 689 |  |  |  | 544 |
| $ | 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 had troubled debt restructured loans at March 31, 2018 totaling $9,446,000. Four loans totaling $537,000 represented accruing impaired residential loans to unrelated borrowers in compliance with the terms of the modification, with one loan comprising $490,000 of this total. The remaining $8,909,000 representing fifteen loans among five relationships are nonaccrual impaired loans based upon a collateral evaluation in accordance with the guidance on impaired loans. Two large relationships accounted for $7,224,000 of the total $8,909,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. Of the $544,000, three were accruing impaired residential mortgages to unrelated borrowers totaling $540,000 and the other one was an accruing impaired home equity loan of $4,000. The remaining $9,027,000 of troubled debt restructured loans represent fifteen loans among seven relationships, are nonaccrual impaired loans, and resulted in a collateral evaluation in accordance with the guidance on impaired loans. Two large relationships accounted for $7,284,000 of the $9,027,000 nonaccrual impaired troubled debt restructured loan total. 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. There were no troubled debt restructured loans added during the three months ended March 31, 2018 and 2017. As a result of management evaluations at March 31, 2018, March 31, 2017, and December 31, 2017, any specific allocations and charge-offs have been taken as appropriate. There were no charge-offs associated with existing troubled debt restructured loan relationships for the three months ended March 31, 2018 or 2017. There were no troubled debt restructured loans that defaulted within twelve months of restructure during the three months ended March 31, 2018 and 2017. As of March 31, 2018, Mid Penn had $734,000 of residential real estate held in other real estate owned. There were five consumer mortgage loans secured by residential real estate properties totaling $415,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 both the Phoenix and Scottdale acquisitions for the three months ended March 31, 2018.
(Dollars in thousands) |  |
Accretable yield, January 1, 2018 |  | $ | 67 |
Acquisition of impaired loans |  |  | 305 |
Accretable yield amortized to interest income |  |  | (36 | )
Reclassification from nonaccretable difference (a) |  |  | - |
Accretable yield, March 31, 2018 |  | $ | 336 |
| (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://www.xbrl.org/2003/role/presentationRef -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 2: http://www.xbrl.org/2003/role/presentationRef -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://www.xbrl.org/2003/role/presentationRef -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 Reference 4: http://www.xbrl.org/2003/role/presentationRef -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 5: http://www.xbrl.org/2003/role/presentationRef -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 6: http://www.xbrl.org/2003/role/presentationRef -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 7: http://www.xbrl.org/2003/role/presentationRef -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://www.xbrl.org/2003/role/presentationRef -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 + Details
Name: | us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration