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

Loans and Allowance for Loan and Lease Losses | 6 Months Ended
--- | ---
Jun. 30, 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 $108,000 at June 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, 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 $479,000 as of June 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 June 30, 2018 and December 31, 2017, are as follows:
(Dollars in thousands) |  |  |  | Special |  |  |  |  |  |
June 30, 2018 |  | Pass |  |  | Mention |  |  | Substandard |  |  | Total |
Commercial and industrial |  | $ | 197,102 |  |  | $ | 2,420 |  |  | $ | 5,202 |  |  | $ | 204,724 |
Commercial real estate |  |  | 565,517 |  |  |  | 1,807 |  |  |  | 8,632 |  |  |  | 575,956 |
Commercial real estate - construction |  |  | 82,323 |  |  |  | — |  |  |  | 367 |  |  |  | 82,690 |
Lease financing |  |  | 153 |  |  |  | — |  |  |  | — |  |  |  | 153 |
Residential mortgage |  |  | 118,779 |  |  |  | 262 |  |  |  | 1,219 |  |  |  | 120,260 |
Home equity |  |  | 47,732 |  |  |  | 4 |  |  |  | 79 |  |  |  | 47,815 |
Consumer |  |  | 4,881 |  |  |  | — |  |  |  | — |  |  |  | 4,881 |
|  | $ | 1,016,487 |  |  | $ | 4,493 |  |  | $ | 15,499 |  |  | $ | 1,036,479 |
(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 June 30, 2018 and December 31, 2017. Impaired loans by loan portfolio class as of June 30, 2018 and December 31, 2017 are summarized as follows:
|  | June 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 |  |  | 1,711 |  |  |  | 2,357 |  |  |  | — |  |  |  | 3,424 |  |  |  | 4,056 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 728 |  |  |  | 852 |  |  |  | — |  |  |  | 760 |  |  |  | 877 |  |  |  | — |
Home equity |  |  | 8 |  |  |  | 107 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 23 |  |  | $ | 23 |  |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,466 |  |  |  | 1,466 |  |  |  | — |  |  |  | 555 |  |  |  | 555 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 493 |  |  |  | 493 |  |  |  | — |  |  |  | 306 |  |  |  | 306 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,324 |  |  | $ | 4,410 |  |  | $ | 282 |  |  | $ | 4,434 |  |  | $ | 4,460 |  |  | $ | 136 |
Commercial real estate |  |  | 550 |  |  |  | 602 |  |  |  | 238 |  |  |  | 1,423 |  |  |  | 1,589 |  |  |  | 293 |
Commercial real estate - construction |  |  | 367 |  |  |  | 370 |  |  |  | 54 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,347 |  |  | $ | 4,433 |  |  | $ | 282 |  |  | $ | 4,434 |  |  | $ | 4,473 |  |  | $ | 136 |
Commercial real estate |  |  | 3,727 |  |  |  | 4,425 |  |  |  | 238 |  |  |  | 5,402 |  |  |  | 6,200 |  |  |  | 293 |
Commercial real estate - construction |  |  | 367 |  |  |  | 370 |  |  |  | 54 |  |  |  | 487 |  |  |  | 492 |  |  |  | 100 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,221 |  |  |  | 1,345 |  |  |  | — |  |  |  | 1,066 |  |  |  | 1,183 |  |  |  | — |
Home equity |  |  | 8 |  |  |  | 107 |  |  |  | — |  |  |  | 260 |  |  |  | 295 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
The average recorded investment of impaired loans and related interest income recognized for the three and six months ended June 30, 2018 and 2017 are summarized as follows:
|  | Three Months Ended |
|  | June 30, 2018 |  |  | June 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 |  | $ | — |  |  | $ | — |  |  | $ | 36 |  |  | $ | — |
Commercial real estate |  |  | 2,650 |  |  |  | 3 |  |  |  | 644 |  |  |  | 110 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 473 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 699 |  |  |  | 7 |  |  |  | 860 |  |  |  | 7 |
Home equity |  |  | 95 |  |  |  | — |  |  |  | 90 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 23 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,455 |  |  |  | 7 |  |  |  | 644 |  |  |  | 110 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 326 |  |  |  | 2 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 639 |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,349 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,029 |  |  |  | — |  |  |  | 2,792 |  |  |  | — |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 240 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | 66 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 4,372 |  |  | $ | — |  |  | $ | 36 |  |  | $ | — |
Commercial real estate |  |  | 5,134 |  |  |  | 10 |  |  |  | 4,080 |  |  |  | 220 |
Commercial real estate - construction |  |  | 367 |  |  |  | — |  |  |  | 1,039 |  |  |  | 2 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,338 |  |  |  | 7 |  |  |  | 926 |  |  |  | 7 |
Home equity |  |  | 95 |  |  |  | — |  |  |  | 90 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
|  | Six Months Ended |
|  | June 30, 2018 |  |  | June 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 |  | $ | — |  |  | $ | — |  |  | $ | 18 |  |  | $ | — |
Commercial real estate |  |  | 2,306 |  |  |  | 3 |  |  |  | 524 |  |  |  | 279 |
Commercial real estate - construction |  |  | 17 |  |  |  | — |  |  |  | 313 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 796 |  |  |  | 14 |  |  |  | 843 |  |  |  | 18 |
Home equity |  |  | 208 |  |  |  | — |  |  |  | 101 |  |  |  | 2 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 20 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 2,001 |  |  |  | 14 |  |  |  | 738 |  |  |  | 110 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,086 |  |  |  | — |  |  |  | 350 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 3,519 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,367 |  |  |  | — |  |  |  | 2,660 |  |  |  | — |
Commercial real estate - construction |  |  | 366 |  |  |  | — |  |  |  | 144 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | 40 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total Impaired Loans: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 3,539 |  |  | $ | — |  |  | $ | 18 |  |  | $ | — |
Commercial real estate |  |  | 5,674 |  |  |  | 17 |  |  |  | 3,922 |  |  |  | 389 |
Commercial real estate - construction |  |  | 383 |  |  |  | — |  |  |  | 457 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,882 |  |  |  | 14 |  |  |  | 1,233 |  |  |  | 18 |
Home equity |  |  | 208 |  |  |  | — |  |  |  | 101 |  |  |  | 2 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Nonaccrual loans by loan portfolio class as of June 30, 2018 and December 31, 2017 are summarized as follows:
(Dollars in thousands) |  | June 30, 2018 |  |  | December 31, 2017 |
Commercial and industrial |  | $ | 4,347 |  |  | $ | 4,434 |
Commercial real estate |  |  | 3,215 |  |  |  | 4,902 |
Commercial real estate - construction |  |  | 367 |  |  |  | 487 |
Residential mortgage |  |  | 675 |  |  |  | 492 |
Home equity |  |  | 8 |  |  |  | 260 |
|  | $ | 8,612 |  |  | $ | 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 June 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 June 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 |  |  |  |  |  |  |  |  |
June 30, 2018 |  | Due |  |  | Due |  |  | Days |  |  | Due |  |  | Current |  |  | Total Loans |
Commercial and industrial |  | $ | 193 |  |  | $ | 5 |  |  | $ | 4,324 |  |  | $ | 4,522 |  |  | $ | 200,179 |  |  | $ | 204,701 |
Commercial real estate |  |  | 757 |  |  |  | 1,468 |  |  |  | 276 |  |  |  | 2,501 |  |  |  | 571,989 |  |  |  | 574,490 |
Commercial real estate - construction |  |  | 859 |  |  |  | - |  |  |  | 367 |  |  |  | 1,226 |  |  |  | 81,464 |  |  |  | 82,690 |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 153 |  |  |  | 153 |
Residential mortgage |  |  | 183 |  |  |  | 62 |  |  |  | 164 |  |  |  | 409 |  |  |  | 119,358 |  |  |  | 119,767 |
Home equity |  |  | 35 |  |  |  | - |  |  |  | - |  |  |  | 35 |  |  |  | 47,780 |  |  |  | 47,815 |
Consumer |  |  | - |  |  |  | 9 |  |  |  | - |  |  |  | 9 |  |  |  | 4,872 |  |  |  | 4,881 |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | - |  |  |  | 23 |  |  |  | - |  |  |  | 23 |  |  |  | - |  |  |  | 23 |
Commercial real estate |  |  | - |  |  |  | 25 |  |  |  | 901 |  |  |  | 926 |  |  |  | 540 |  |  |  | 1,466 |
Commercial real estate - construction |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Lease financing |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Residential mortgage |  |  | 20 |  |  |  | 10 |  |  |  | 198 |  |  |  | 228 |  |  |  | 265 |  |  |  | 493 |
Home equity |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Consumer |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
Total |  | $ | 2,047 |  |  | $ | 1,602 |  |  | $ | 6,230 |  |  | $ | 9,879 |  |  | $ | 1,026,600 |  |  | $ | 1,036,479 |
(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, June 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, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
April 1, 2018 |  | $ | 1,977 |  |  | $ | 4,653 |  |  | $ | 183 |  |  | $ | - |  |  | $ | 452 |  |  | $ | 391 |  |  | $ | 4 |  |  | $ | 6 |  |  | $ | 7,666 |
Charge-offs |  |  | (129 | ) |  |  | - |  |  |  | (40 | ) |  |  | - |  |  |  | (3 | ) |  |  | (91 | ) |  |  | (4 | ) |  |  | - |  |  |  | (267 | )
Recoveries |  |  | - |  |  |  | 788 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 2 |  |  |  | - |  |  |  | 790 |
Provisions |  |  | 272 |  |  |  | (718 | ) |  |  | 3 |  |  |  | - |  |  |  | (8 | ) |  |  | 120 |  |  |  | 2 |  |  |  | 329 |  |  |  | - |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
June 30, 2018 |  | $ | 2,120 |  |  | $ | 4,723 |  |  | $ | 146 |  |  | $ | - |  |  | $ | 441 |  |  | $ | 420 |  |  | $ | 4 |  |  | $ | 335 |  |  | $ | 8,189 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the six months ended, June 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 |  |  | (129 | ) |  |  | - |  |  |  | (40 | ) |  |  | - |  |  |  | (5 | ) |  |  | (167 | ) |  |  | (10 | ) |  |  | - |  |  |  | (351 | )
Recoveries |  |  | - |  |  |  | 805 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 4 |  |  |  | - |  |  |  | 809 |
Provisions |  |  | 454 |  |  |  | (517 | ) |  |  | 8 |  |  |  | - |  |  |  | 18 |  |  |  | 164 |  |  |  | 7 |  |  |  | (9 | ) |  |  | 125 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
June 30, 2018 |  |  | 2,120 |  |  |  | 4,723 |  |  |  | 146 |  |  |  | - |  |  |  | 441 |  |  |  | 420 |  |  |  | 4 |  |  |  | 335 |  |  |  | 8,189 |
Individually evaluated for impairment |  |  | 282 |  |  |  | 238 |  |  |  | 54 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 574 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Collectively evaluated for impairment |  | $ | 1,838 |  |  | $ | 4,485 |  |  | $ | 92 |  |  | $ | - |  |  | $ | 441 |  |  | $ | 420 |  |  | $ | 4 |  |  | $ | 335 |  |  | $ | 7,615 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 204,724 |  |  | $ | 575,956 |  |  | $ | 82,690 |  |  | $ | 153 |  |  | $ | 120,260 |  |  | $ | 47,815 |  |  | $ | 4,881 |  |  | $ | - |  |  | $ | 1,036,479 |
Ending balance: Individually evaluated for impairment |  |  | 4,324 |  |  |  | 2,261 |  |  |  | 367 |  |  |  | - |  |  |  | 728 |  |  |  | 8 |  |  |  | - |  |  |  | - |  |  |  | 7,688 |
Ending balance: Acquired with credit deterioration |  |  | 23 |  |  |  | 1,466 |  |  |  | - |  |  |  | - |  |  |  | 493 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 1,982 |
Ending balance: Collectively evaluated for impairment |  | $ | 200,377 |  |  | $ | 572,229 |  |  | $ | 82,323 |  |  | $ | 153 |  |  | $ | 119,039 |  |  | $ | 47,807 |  |  | $ | 4,881 |  |  | $ | - |  |  | $ | 1,026,809 |
(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 |
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: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
January 1, 2017 |  | $ | 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, June 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, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
April 1, 2017 |  | $ | 1,630 |  |  | $ | 4,715 |  |  | $ | 101 |  |  | $ | 1 |  |  | $ | 532 |  |  | $ | 364 |  |  | $ | 3 |  |  | $ | 274 |  |  | $ | 7,620 |
Charge-offs |  |  | - |  |  |  | (30 | ) |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | (10 | ) |  |  | - |  |  |  | (40 | )
Recoveries |  |  | 3 |  |  |  | 22 |  |  |  | - |  |  |  | - |  |  |  | 2 |  |  |  | 5 |  |  |  | 1 |  |  |  | - |  |  |  | 33 |
Provisions |  |  | (5 | ) |  |  | 274 |  |  |  | 39 |  |  |  | - |  |  |  | 5 |  |  |  | 35 |  |  |  | 10 |  |  |  | (258 | ) |  |  | 100 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
June 30, 2017 |  | $ | 1,628 |  |  | $ | 4,981 |  |  | $ | 140 |  |  | $ | 1 |  |  | $ | 539 |  |  | $ | 404 |  |  | $ | 4 |  |  | $ | 16 |  |  | $ | 7,713 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
As of, and for the six months ended, June 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 | ) |  |  | (30 | ) |  |  | - |  |  |  | - |  |  |  | (18 | ) |  |  | - |  |  |  | (16 | ) |  |  | - |  |  |  | (76 | )
Recoveries |  |  | 7 |  |  |  | 361 |  |  |  | - |  |  |  | - |  |  |  | 4 |  |  |  | 5 |  |  |  | 4 |  |  |  | - |  |  |  | 381 |
Provisions |  |  | 53 |  |  |  | 327 |  |  |  | (4 | ) |  |  | - |  |  |  | 12 |  |  |  | 20 |  |  |  | 13 |  |  |  | (196 | ) |  |  | 225 |
Ending balance, |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
June 30, 2017 |  |  | 1,628 |  |  |  | 4,981 |  |  |  | 140 |  |  |  | 1 |  |  |  | 539 |  |  |  | 404 |  |  |  | 4 |  |  |  | 16 |  |  |  | 7,713 |
Ending balance: Individually evaluated for impairment |  |  | - |  |  |  | 893 |  |  |  | 70 |  |  |  | - |  |  |  | 66 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 1,029 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Collectively evaluated for impairment |  | $ | 1,628 |  |  | $ | 4,088 |  |  | $ | 70 |  |  | $ | 1 |  |  | $ | 473 |  |  | $ | 404 |  |  | $ | 4 |  |  | $ | 16 |  |  | $ | 6,684 |
Loans receivables: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 181,368 |  |  | $ | 482,141 |  |  | $ | 53,305 |  |  | $ | 307 |  |  | $ | 102,637 |  |  | $ | 38,671 |  |  | $ | 3,878 |  |  | $ | - |  |  | $ | 862,307 |
Ending balance: Individually evaluated for impairment |  |  | - |  |  |  | 3,651 |  |  |  | 571 |  |  |  | - |  |  |  | 968 |  |  |  | 327 |  |  |  | - |  |  |  | - |  |  |  | 5,517 |
Ending balance: Acquired with credit deterioration |  |  | - |  |  |  | 573 |  |  |  | - |  |  |  | - |  |  |  | 324 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | 897 |
Ending balance: Collectively evaluated for impairment |  | $ | 181,368 |  |  | $ | 477,917 |  |  | $ | 52,734 |  |  | $ | 307 |  |  | $ | 101,345 |  |  | $ | 38,344 |  |  | $ | 3,878 |  |  | $ | - |  |  | $ | 855,893 |
The recorded investments in troubled debt restructured loans at June 30, 2018 and December 31, 2017 are as follows:
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
June 30, 2018 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,324 |
Commercial real estate |  | 2,670 |  |  |  | 2,571 |  |  |  | 1,984 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 528 |
Home equity |  | 14 |  |  |  | 14 |  |  |  | 3 |
| $ | 7,471 |  |  | $ | 7,720 |  |  | $ | 6,839 |
(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 had troubled debt restructured loans at June 30, 2018 totaling $6,839,000, and included four loans totaling $531,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 $528,000 and one loan being an accruing impaired home equity loan of $3,000. The remaining $6,308,000 of troubled debt restructurings is attributable to nine 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,747,000 of the total $6,308,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. There were no troubled debt restructured loans added during the three or six months ended June 30, 2018 and 2017. As a result of management evaluations at June 30, 2018, June 30, 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 or six months ended June 30, 2018 or 2017. There were no troubled debt restructured loans that defaulted within twelve months of restructure during the three and six months ended June 30, 2018 and 2017. As of June 30, 2018, Mid Penn had $912,000 of residential real estate held in other real estate owned. There were four consumer mortgage loans secured by residential real estate properties totaling $274,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 Bancorp, Inc. (2015) and Scottdale (2018) acquisitions for the three and six months ended June 30, 2018.
(Dollars in thousands) |  |
Accretable yield, April 1, 2018 |  | $ | 336 |
Accretable yield amortized to interest income |  |  | (36 | )
Reclassification from nonaccretable difference (a) |  |  | - |
Accretable yield, June 30, 2018 |  | $ | 300 |
(Dollars in thousands) |  |
Accretable yield, January 1, 2018 |  | $ | 67 |
Acquisition of impaired loans |  | $ | 305 |
Accretable yield amortized to interest income |  |  | (72 | )
Reclassification from nonaccretable difference (a) |  |  | - |
Accretable yield, June 30, 2018 |  | $ | 300 |
| (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