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 nine months ended September 30, 2023 and 2022, loans were sold resulting in a gain on sales of SBA loans of $482,000 and $491,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 both the first nine months of 2023 and the first nine months of 2022. The balance of the purchased receivables was $52.1 million at September 30, 2023, compared to $60.5 million at September 30, 2022, and $79.3 million at December 31, 2022.
The commercial loan portfolio decreased ($112.1) million, or (21%), to $430.7 million at September 30, 2023, from $542.8 million at September 30, 2022, and decreased ($103.2) million, or (19%), from $533.9 million at December 31, 2022. Commercial and industrial (“C&I”) line usage was 27% at September 30, 2023, compared to 29% at both September 30, 2022 and December 31, 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 decreased ($22.4) million, or (4%), to $589.8 million at September 30, 2023, from $612.2 million at September 30, 2022, and decreased ($24.9) million, or (4%), from $614.7 million at December 31, 2022. CRE non-owner occupied loans increased $184.9 million, or 18%, to $1.208 billion at September 30, 2023, compared to $1.203 billion at September 30, 2022, and increased $142.0 million, or 13%, from $1.066 billion at December 31, 2022. At September 30, 2023, 33% of the CRE loan portfolio was secured by owner-occupied real estate, compared to 37% at both September 30, 2022 and December 31, 2022.
The average loan size for all CRE loans at September 30, 2023 was $1.6 million, which was the same as the average loan size for office CRE loans at this date. The Company has personal guarantees on 91% 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 $401 million, including 30 loans totaling approximately $76 million, in San Jose, 17 loans totaling approximately $26 million in San Francisco, and eight loans totaling approximately $16 million, in Oakland, at September 30, 2023. Non-owner occupied CRE with office exposure totaled $316 million at September 30, 2023. Of the $401 million of CRE loans with office exposure, approximately $37 million, or 9%, are situated in the Bay Area downtown business districts of San Jose and San Francisco, with an average balance of $2.2 million.
At September 30, 2023, the weighted average loan-to-value and debt-service coverage for the entire non-owner occupied office portfolio were 43.1% and 1.82 times, respectively. For the nine non-owner occupied office loans in San Francisco at September 30, 2023, the weighted average loan-to-value and debt-service coverage were 36% and 1.49 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 decreased ($9.3) million, or (6%), to $158.1 million at September 30, 2023, compared to $167.4 million at September 30, 2022, and decreased ($5.5) million, or (3%), from $163.6 million at December 31, 2022.