sold in the secondary market depending on market conditions. When the guaranteed portion of an SBA loan is sold, the Company retains the servicing rights for the sold portion. During the six months ended June 30, 2023 and 2022, loans were sold resulting in a gain on sales of SBA loans of $275,000 and $183,000, respectively.
The Company’s factoring receivables are from the operations of Bay View Funding whose primary business is purchasing and collecting factored receivables. Factored receivables are receivables that have been transferred by the originating organization and typically have not been subject to previous collection efforts. These receivables are acquired from a variety of companies, including but not limited to service providers, transportation companies, manufacturers, distributors, wholesalers, apparel companies, advertisers, and temporary staffing companies. The portfolio of factored receivables is included in the Company’s commercial loan portfolio. The average life of the factored receivables was 39 days for the first six months of 2023, compared to 38 days for the first six months of 2022. The balance of the purchased receivables was $60.9 million at June 30, 2023, compared to $63.4 million at June 30, 2022, and $79.3 million at December 31, 2022.
The commercial loan portfolio decreased ($65.0) million, or (12%), to $466.4 million at June 30, 2023, from $531.4 million at June 30, 2022, and decreased ($67.5) million, or (13%), from $533.9 million at December 31, 2022. Commercial and industrial (“C&I”) line usage was 29% at both June 30, 2023 and December 31, 2022, compared to 28% at June 30, 2022.
The Company’s CRE loans consist primarily of loans based on the borrower’s cash flow and are secured by deeds of trust on commercial property to provide a secondary source of repayment. The Company generally restricts real estate term loans to no more than 75% of the property’s appraised value or the purchase price of the property depending on the type of property and its utilization. The Company offers both fixed and floating rate loans. Maturities for CRE loans are generally between five and ten years (with amortization ranging from fifteen to twenty five years and a balloon payment due at maturity), however, SBA and certain other real estate loans that can be sold in the secondary market may be granted for longer maturities.
The CRE owner-occupied loan portfolio increased $10.5 million, or 2%, to $608.0 million at June 30, 2023, from $597.5 million at June 30, 2022, and decreased ($6.6) million, or (1%), from $614.6 million at December 31, 2022. CRE non-owner occupied loans increased $153.7 million, or 15%, to $1.147 billion at June 30, 2023, compared to $993.6 million at June 30, 2022, and increased $80.9 million, or 8%, from $1.066 billion at December 31, 2022. At June 30, 2023, 35% of the CRE loan portfolio was secured by owner-occupied real estate, compared to 38% at June 30, 2022, and 37% at December 31, 2022.
The average loan size for all CRE loans was $1.6 million, and the average loan size for office CRE loans was $1.7 million. The Company has personal guarantees on 90% of its CRE portfolio. A substantial portion of the unguaranteed CRE loans were made to credit-worthy non-profit organizations. Total office exposure in the CRE portfolio was $397 million, including 30 loans totaling approximately $76 million, in San Jose, 17 loans totaling approximately $29 million in San Francisco, and 6 loans totaling approximately $11 million, in Oakland, at June 30, 2023. Non-owner occupied CRE with office exposure totaled $307 million at June 30, 2023.
Of the $397 million of CRE loans with office exposure, approximately $35 million, or 9%, are situated in the Bay Area downtown business districts of San Jose and San Francisco, with an average balance of $2.3 million.
At June 30, 2023, the weighted average loan-to-value and debt-service coverage for the entire non-owner occupied office portfolio were 43.6% and 1.87 times, respectively. For the 8 non-owner occupied office loans in San Francisco at June 30, 2023, the weighted average loan-to-value and debt-service coverage were 34% and 1.55 times, respectively.
The Company’s land and construction loans are primarily to finance the development and construction of commercial and single family residential properties. The Company utilizes underwriting guidelines to assess the likelihood of repayment from sources such as sale of the property or availability of permanent mortgage financing prior to making the construction loan. Construction loans are provided only in our market area, and the Company has extensive controls for the disbursement process. Land and construction loans increased $7.4 million, or 5%, to $162.8 million at June 30, 2023, compared to $155.4 million at June 30, 2022, and remained flat from $163.6 million at December 31, 2022.