SEC Info  
    Home      Search      My Interests      Help      Sign In      Please Sign In

C&F Financial Corp. – ‘10-K’ for 12/31/23 – ‘EX-101.CAL’

On:  Tuesday, 2/27/24, at 3:05pm ET   ·   For:  12/31/23   ·   Accession #:  913341-24-9   ·   File #:  0-23423

Previous ‘10-K’:  ‘10-K’ on 2/28/23 for 12/31/22   ·   Latest ‘10-K’:  This Filing   ·   18 References:   

Find Words in Filings emoji
 
  in    Show  and   Hints

  As Of               Filer                 Filing    For·On·As Docs:Size

 2/27/24  C&F Financial Corp.               10-K       12/31/23  148:35M

Annual Report   —   Form 10-K   —   SEA’34

Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 10-K        Annual Report                                       HTML   8.68M 
 2: EX-23       Consent of Expert or Counsel                        HTML     38K 
 6: EX-97       Clawback Policy re: Recovery of Erroneously         HTML     60K 
                Awarded Compensation                                             
 3: EX-31.1     Certification -- §302 - SOA'02                      HTML     44K 
 4: EX-31.2     Certification -- §302 - SOA'02                      HTML     43K 
 5: EX-32       Certification -- §906 - SOA'02                      HTML     42K 
12: R1          Document And Entity Information                     HTML    108K 
13: R2          Consolidated Balance Sheets                         HTML    160K 
14: R3          Consolidated Balance Sheets (Parenthetical)         HTML     55K 
15: R4          Consolidated Statements of Income                   HTML    173K 
16: R5          Consolidated Statements of Comprehensive Income     HTML     77K 
                (Loss)                                                           
17: R6          Consolidated Statements of Equity                   HTML    100K 
18: R7          Consolidated Statements of Equity (Parenthetical)   HTML     40K 
19: R8          Consolidated Statements of Cash Flows               HTML    163K 
20: R9          Summary of Significant Accounting Policies          HTML     95K 
21: R10         Adoption of New Accounting Standards                HTML    114K 
22: R11         Securities                                          HTML    246K 
23: R12         Loans                                               HTML    454K 
24: R13         Allowance for Credit Losses                         HTML   1.08M 
25: R14         Oreo                                                HTML     78K 
26: R15         Corporate Premises and Equipment                    HTML     57K 
27: R16         Goodwill and Other Intangible Assets                HTML     82K 
28: R17         Leases                                              HTML    144K 
29: R18         Time Deposits                                       HTML     61K 
30: R19         Borrowings                                          HTML     69K 
31: R20         Equity, Other Comprehensive Income and Earnings     HTML    290K 
                Per Share                                                        
32: R21         Income Taxes                                        HTML    154K 
33: R22         Employee Benefit Plans                              HTML    231K 
34: R23         Related Party Transactions                          HTML     45K 
35: R24         Share-Based Plans                                   HTML     87K 
36: R25         Regulatory Requirements and Restrictions            HTML    175K 
37: R26         Commitments and Contingent Liabilities              HTML     60K 
38: R27         Fair Value of Assets and Liabilities                HTML    399K 
39: R28         Business Segments                                   HTML    355K 
40: R29         Derivative Financial Instruments                    HTML    118K 
41: R30         Holding Company Condensed Financial Information     HTML    149K 
42: R31         Other Noninterest Expenses                          HTML     69K 
43: R32         Summary of Significant Accounting Policies          HTML    164K 
                (Policies)                                                       
44: R33         Adoption of New Accounting Standards (Tables)       HTML     99K 
45: R34         Securities (Tables)                                 HTML    246K 
46: R35         Loans (Tables)                                      HTML    458K 
47: R36         Allowance for Credit Losses (Tables)                HTML   1.07M 
48: R37         Oreo (Tables)                                       HTML     78K 
49: R38         Corporate Premises and Equipment (Tables)           HTML     55K 
50: R39         Goodwill and Other Intangible Assets (Tables)       HTML     83K 
51: R40         Leases (Tables)                                     HTML    169K 
52: R41         Time Deposits (Tables)                              HTML     61K 
53: R42         Borrowings (Tables)                                 HTML     60K 
54: R43         Equity, Other Comprehensive Income (Loss) and       HTML    283K 
                Earnings Per Share (Tables)                                      
55: R44         Income Taxes (Tables)                               HTML    155K 
56: R45         Employee Benefit Plans (Tables)                     HTML    228K 
57: R46         Share-Based Plans (Tables)                          HTML     82K 
58: R47         Regulatory Requirements and Restrictions (Tables)   HTML    167K 
59: R48         Commitments and Contingent Liabilities (Tables)     HTML     54K 
60: R49         Fair Value of Assets and Liabilities (Tables)       HTML    380K 
61: R50         Business Segments (Tables)                          HTML    348K 
62: R51         Derivative Financial Instruments (Tables)           HTML    111K 
63: R52         Holding Company Condensed Financial Information     HTML    150K 
                (Tables)                                                         
64: R53         Other Noninterest Expenses (Tables)                 HTML     67K 
65: R54         Summary of Significant Accounting Policies -        HTML     55K 
                Nature of Operations and Significant Group                       
                Concentration of Credit Risk (Details)                           
66: R55         Summary of Significant Accounting Policies - Loans  HTML     43K 
                Held for Investment and Allowance for Credit                     
                Losses on Loans (Details)                                        
67: R56         Summary of Significant Accounting Policies -        HTML     42K 
                Repossessed Assets (Details)                                     
68: R57         Summary of Significant Accounting Policies -        HTML     51K 
                Corporate Premises and Equipment (Details)                       
69: R58         Summary of Significant Accounting Policies -        HTML     42K 
                Income taxes and derivative financial instruments                
                (Details)                                                        
70: R59         Adoption of New Accounting Standards (Details)      HTML    121K 
71: R60         Securities - Available for sale Securities          HTML     66K 
                (Details)                                                        
72: R61         Securities - Maturities and Realized Gains and      HTML     81K 
                Losses (Details)                                                 
73: R62         Securities - Pledged as Collateral (Details)        HTML     48K 
74: R63         Securities - Unrealized Loss Positions (Details)    HTML     90K 
75: R64         Securities - Restricted Stocks and others           HTML     42K 
                (Details)                                                        
76: R65         Loans - Classes of Loans (Details)                  HTML     78K 
77: R66         Loans - Loan Portfolio by Class (Details)           HTML    126K 
78: R67         Loans - Amortized cost basis of loans on            HTML     54K 
                nonaccrual status (Details)                                      
79: R68         Loans - Amortized cost basis of loans (Details)     HTML     59K 
80: R69         Loans - Loan Modifications (Details)                HTML     51K 
81: R70         Loans - Loans Acquired (Details)                    HTML     66K 
82: R71         Loans - Change in Accretable Yield (Details)        HTML     50K 
83: R72         Loans - Past Due Status (Details)                   HTML    118K 
84: R73         Loans - Troubled Debt Restructurings (Details)      HTML     58K 
85: R74         Loans - Impaired Loans (Details)                    HTML     59K 
86: R75         Allowance for Credit Losses - Loan Portfolio        HTML     83K 
                (Details)                                                        
87: R76         Allowance for Credit Losses - Provision for Credit  HTML     44K 
                Losses (Details)                                                 
88: R77         Allowance for Credit Losses - Loan Rating and Year  HTML    162K 
                of Origination (Details)                                         
89: R78         Allowance for Credit Losses - Credit Rating and     HTML    117K 
                Year of Origination (Details)                                    
90: R79         Allowance for Credit Losses - Gross Charge-offs of  HTML     80K 
                loans by Year of Origination (Details)                           
91: R80         Allowance for Credit Losses - Change in Allowance   HTML     70K 
                for Loan Losses (Details)                                        
92: R81         Allowance for Credit Losses - Allowance and Loans   HTML     84K 
                by Impairment Methodology (Details)                              
93: R82         Allowance for Credit Losses - Credit Quality        HTML     88K 
                Indicators (Details)                                             
94: R83         Allowance for Credit Losses - Loans by Credit       HTML     56K 
                Quality Indicators - Performing and Non-Performing               
                (Details)                                                        
95: R84         OREO - Change in OREO (Details)                     HTML     49K 
96: R85         OREO - Changes in the Allowance for OREO Losses     HTML     49K 
                (Details)                                                        
97: R86         Corporate Premises and Equipment (Details)          HTML     56K 
98: R87         Goodwill and Other Intangible Assets - Goodwill     HTML     44K 
                (Details)                                                        
99: R88         Goodwill and Other Intangible Assets - Other        HTML     50K 
                Intangible Assets (Details)                                      
100: R89         Goodwill and Other Intangible Assets -              HTML     59K  
                Amortization (Details)                                           
101: R90         Leases (Details)                                    HTML     95K  
102: R91         Leases - Maturities of Corporation's Lease          HTML     78K  
                Liabilities (Details)                                            
103: R92         Time Deposits - Time Deposits (Details)             HTML     44K  
104: R93         Time Deposits - Remaining Maturities on Time        HTML     53K  
                Deposits (Details)                                               
105: R94         Borrowings - Short-term Borrowings (Details)        HTML     55K  
106: R95         Borrowings - Long-term Borrowings (Details)         HTML     61K  
107: R96         Borrowings - Line of Credit and other disclosures   HTML     55K  
                (Details)                                                        
108: R97         Borrowings - Statutory Trusts (Details)             HTML     71K  
109: R98         Equity, Other Comprehensive Income and Earnings     HTML     61K  
                Per Share - Equity and Noncontrolling Interest                   
                (Details)                                                        
110: R99         Equity, Other Comprehensive Income and Earnings     HTML     85K  
                Per Share - Changes in Accumulated Other                         
                Comprehensive Income (Loss), Net (Details)                       
111: R100        Equity, Other Comprehensive Income and Earnings     HTML     72K  
                Per Share - Reclassification of Accumulated Other                
                Comprehensive Loss, Net (Details)                                
112: R101        Equity, Other Comprehensive Income and Earnings     HTML     56K  
                Per Share - Earnings Per Share (Eps) (Details)                   
113: R102        Income Taxes - Components of Income Tax Expense     HTML     49K  
                (Details)                                                        
114: R103        Income Taxes - Income Tax Rate Reconciliation       HTML     89K  
                (Details)                                                        
115: R104        Income Taxes - Deferred Tax Assets and Liabilities  HTML     78K  
                (Details)                                                        
116: R105        Employee Benefit Plans - Defined Contribution       HTML     58K  
                Plans (Details)                                                  
117: R106        Employee Benefit Plans - Defined Benefit Plans -    HTML    101K  
                Projected Benefit Obligations, Plan Assets, Funded               
                Status and Rate Assumptions (Details)                            
118: R107        Employee Benefit Plans - Defined Benefit Plans -    HTML     80K  
                Components of Net Periodic Pension Costs (Details)               
119: R108        Employee Benefit Plans - Defined Benefit Plans -    HTML     50K  
                Weighted-average Assumptions for Net Periodic                    
                Benefit Cost (Details)                                           
120: R109        Employee Benefit Plans - Defined Benefit Plans -    HTML     53K  
                Expected Benefit Payments (Details)                              
121: R110        Employee Benefit Plans - Defined Benefit Plans -    HTML     47K  
                Weighted-Average Asset Allocations (Details)                     
122: R111        Employee Benefit Plans - Defined Benefit Plans -    HTML     58K  
                Fair Value of Defined Benefit Plan Assets                        
                (Details)                                                        
123: R112        Related Party Transactions (Details)                HTML     51K  
124: R113        Share-Based Plans - Restricted Stock Activity       HTML     92K  
                (Details)                                                        
125: R114        Regulatory Requirements and Restrictions - Capital  HTML    108K  
                Amounts and Ratios (Details)                                     
126: R115        Regulatory Requirements and Restrictions - New      HTML     51K  
                minimum capital ratios (Details)                                 
127: R116        Regulatory Requirements and Restrictions - Trust    HTML     45K  
                Preferred Securities (Details)                                   
128: R117        Commitments and Contingent Liabilities - Loan       HTML     45K  
                Commitments (Details)                                            
129: R118        Commitments and Contingent Liabilities - Other      HTML     48K  
                (Details)                                                        
130: R119        Commitments and Contingent Liabilities - Changes    HTML     45K  
                in Allowance for Indemnifications Losses (Details)               
131: R120        Fair Value of Assets and Liabilities - Investments  HTML     54K  
                in Other investment company funds (Details)                      
132: R121        Fair Value of Assets and Liabilities - Financial    HTML    106K  
                Assets and Liabilities Measured at Fair Value on a               
                Recurring Basis (Details)                                        
133: R122        Fair Value of Assets and Liabilities - Financial    HTML     43K  
                Assets Measured at Fair Value on Non-Recurring                   
                Basis (Details)                                                  
134: R123        Fair Value of Assets and Liabilities - Carrying     HTML    114K  
                Value and Estimated Fair Value of Financial                      
                Instruments (Details)                                            
135: R124        Business Segments - Segment Reporting (Details)     HTML    134K  
136: R125        Business Segments - Other (Details)                 HTML     59K  
137: R126        Derivative Financial Instruments (Details)          HTML     85K  
138: R127        Holding Company Condensed Financial Information -   HTML     82K  
                Condensed Balance Sheet (Details)                                
139: R128        Holding Company Condensed Financial Information -   HTML     74K  
                Statements of Income (Details)                                   
140: R129        Holding Company Condensed Financial Information -   HTML     74K  
                Condensed Cash Flow Statement (Details)                          
141: R130        Other Noninterest Expenses (Details)                HTML     51K  
142: R131        Pay vs Performance Disclosure                       HTML     50K  
143: R132        Insider Trading Arrangements                        HTML     48K  
145: XML         IDEA XML File -- Filing Summary                      XML    281K  
148: XML         XBRL Instance -- cffi-20231231x10k_htm               XML  11.22M  
144: EXCEL       IDEA Workbook of Financial Report Info              XLSX    313K  
 8: EX-101.CAL  XBRL Calculations -- cffi-20231231_cal               XML    400K 
 9: EX-101.DEF  XBRL Definitions -- cffi-20231231_def                XML   1.40M 
10: EX-101.LAB  XBRL Labels -- cffi-20231231_lab                     XML   2.59M 
11: EX-101.PRE  XBRL Presentations -- cffi-20231231_pre              XML   2.17M 
 7: EX-101.SCH  XBRL Schema -- cffi-20231231                         XSD    327K 
146: JSON        XBRL Instance as JSON Data -- MetaLinks              947±  1.45M  
147: ZIP         XBRL Zipped Folder -- 0000913341-24-000009-xbrl      Zip   1.07M  


‘EX-101.CAL’   —   XBRL Calculations — cffi-20231231_cal


This Exhibit is an XBRL File.


                                                                                                                                                                                
<?xml version="1.0" encoding="windows-1252"?>
<!-- XBRL document created with Toppan Merrill Bridge 10.5.0.8 -->
<!-- Based on XBRL 2.1 -->
<!-- Created on: 2/27/2024 7:57:23 PM -->
<!-- Modified on: 2/27/2024 7:57:23 PM -->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#StatementConsolidatedBalanceSheets" roleURI="http://cffc.com/role/StatementConsolidatedBalanceSheets" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#StatementConsolidatedStatementsOfIncome" roleURI="http://cffc.com/role/StatementConsolidatedStatementsOfIncome" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#StatementConsolidatedStatementsOfComprehensiveIncomeLoss" roleURI="http://cffc.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#StatementConsolidatedStatementsOfCashFlows" roleURI="http://cffc.com/role/StatementConsolidatedStatementsOfCashFlows" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureSecuritiesAvailableForSaleSecuritiesDetails" roleURI="http://cffc.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureSecuritiesMaturitiesAndRealizedGainsAndLossesDetails" roleURI="http://cffc.com/role/DisclosureSecuritiesMaturitiesAndRealizedGainsAndLossesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureSecuritiesUnrealizedLossPositionsDetails" roleURI="http://cffc.com/role/DisclosureSecuritiesUnrealizedLossPositionsDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureLoansClassesOfLoansDetails" roleURI="http://cffc.com/role/DisclosureLoansClassesOfLoansDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureAllowanceForCreditLossesProvisionForCreditLossesDetails" roleURI="http://cffc.com/role/DisclosureAllowanceForCreditLossesProvisionForCreditLossesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureAllowanceForCreditLossesAllowanceAndLoansByImpairmentMethodologyDetails" roleURI="http://cffc.com/role/DisclosureAllowanceForCreditLossesAllowanceAndLoansByImpairmentMethodologyDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureOreoChangeInOreoDetails" roleURI="http://cffc.com/role/DisclosureOreoChangeInOreoDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureCorporatePremisesAndEquipmentDetails" roleURI="http://cffc.com/role/DisclosureCorporatePremisesAndEquipmentDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureLeasesDetails" roleURI="http://cffc.com/role/DisclosureLeasesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetails" roleURI="http://cffc.com/role/DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureTimeDepositsTimeDepositsDetails" roleURI="http://cffc.com/role/DisclosureTimeDepositsTimeDepositsDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureTimeDepositsRemainingMaturitiesOnTimeDepositsDetails" roleURI="http://cffc.com/role/DisclosureTimeDepositsRemainingMaturitiesOnTimeDepositsDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureEquityOtherComprehensiveIncomeAndEarningsPerShareChangesInAccumulatedOtherComprehensiveIncomeLossNetDetails" roleURI="http://cffc.com/role/DisclosureEquityOtherComprehensiveIncomeAndEarningsPerShareChangesInAccumulatedOtherComprehensiveIncomeLossNetDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails" roleURI="http://cffc.com/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureIncomeTaxesIncomeTaxRateReconciliationDetails" roleURI="http://cffc.com/role/DisclosureIncomeTaxesIncomeTaxRateReconciliationDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" roleURI="http://cffc.com/role/DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureEmployeeBenefitPlansDefinedBenefitPlansProjectedBenefitObligationsPlanAssetsFundedStatusAndRateAssumptionsDetails" roleURI="http://cffc.com/role/DisclosureEmployeeBenefitPlansDefinedBenefitPlansProjectedBenefitObligationsPlanAssetsFundedStatusAndRateAssumptionsDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureEmployeeBenefitPlansDefinedBenefitPlansComponentsOfNetPeriodicPensionCostsDetails" roleURI="http://cffc.com/role/DisclosureEmployeeBenefitPlansDefinedBenefitPlansComponentsOfNetPeriodicPensionCostsDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureFairValueOfAssetsAndLiabilitiesFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" roleURI="http://cffc.com/role/DisclosureFairValueOfAssetsAndLiabilitiesFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureBusinessSegmentsSegmentReportingDetails" roleURI="http://cffc.com/role/DisclosureBusinessSegmentsSegmentReportingDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureHoldingCompanyCondensedFinancialInformationCondensedBalanceSheetDetails" roleURI="http://cffc.com/role/DisclosureHoldingCompanyCondensedFinancialInformationCondensedBalanceSheetDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureHoldingCompanyCondensedFinancialInformationStatementsOfIncomeDetails" roleURI="http://cffc.com/role/DisclosureHoldingCompanyCondensedFinancialInformationStatementsOfIncomeDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureOtherNoninterestExpensesDetails" roleURI="http://cffc.com/role/DisclosureOtherNoninterestExpensesDetails" xmlns="http://www.xbrl.org/2003/linkbase"/>
<roleRef xlink:type="simple" xlink:href="cffi-20231231.xsd#DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetailscalc2" roleURI="http://cffc.com/role/DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetailscalc2" xmlns="http://www.xbrl.org/2003/linkbase"/>
<calculationLink xlink:role="http://cffc.com/role/StatementConsolidatedBalanceSheets" xlink:type="extended" xlink:title="00100 - Statement - CONSOLIDATED BALANCE SHEETS" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="LiabilitiesAndStockholdersEquity"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities" xlink:label="us-gaap_Liabilities_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_Liabilities_638446606346743304" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Deposits" xlink:label="us-gaap_Deposits_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="us-gaap_Deposits_638446606346743304" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestBearingDepositLiabilitiesDomestic" xlink:label="us-gaap_NoninterestBearingDepositLiabilitiesDomestic_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Deposits_638446606346743304" xlink:to="us-gaap_NoninterestBearingDepositLiabilitiesDomestic_638446606346743304" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestBearingDepositLiabilitiesDomestic" xlink:label="us-gaap_InterestBearingDepositLiabilitiesDomestic_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Deposits_638446606346743304" xlink:to="us-gaap_InterestBearingDepositLiabilitiesDomestic_638446606346743304" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits" xlink:label="us-gaap_TimeDeposits_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Deposits_638446606346743304" xlink:to="us-gaap_TimeDeposits_638446606346743304" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermBorrowings" xlink:label="us-gaap_ShortTermBorrowings_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="us-gaap_ShortTermBorrowings_638446606346743304" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_LongTermBorrowings" xlink:label="cffi_LongTermBorrowings_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="cffi_LongTermBorrowings_638446606346743304" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust" xlink:label="us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_638446606346743304" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="us-gaap_InterestPayableCurrentAndNoncurrent_638446606346743304"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="us-gaap_InterestPayableCurrentAndNoncurrent_638446606346743304" order="5" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilities" xlink:label="us-gaap_OtherLiabilities_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_638446606346743304" xlink:to="us-gaap_OtherLiabilities_638446606346753461" order="6" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_638446606346753461" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_638446606346753461" xlink:to="us-gaap_StockholdersEquity_638446606346753461" order="1" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue" xlink:label="us-gaap_CommonStockValue_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_638446606346753461" xlink:to="us-gaap_CommonStockValue_638446606346753461" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="us-gaap_AdditionalPaidInCapital_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_638446606346753461" xlink:to="us-gaap_AdditionalPaidInCapital_638446606346753461" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_638446606346753461" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit_638446606346753461" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_638446606346753461" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_638446606346753461" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MinorityInterest" xlink:label="us-gaap_MinorityInterest_638446606346753461"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_638446606346753461" xlink:to="us-gaap_MinorityInterest_638446606346753461" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets" xlink:label="Assets"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_638446606346763337" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndDueFromBanks" xlink:label="us-gaap_CashAndDueFromBanks_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_638446606346763337" xlink:to="us-gaap_CashAndDueFromBanks_638446606346763337" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestBearingDepositsInBanks" xlink:label="us-gaap_InterestBearingDepositsInBanks_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_638446606346763337" xlink:to="us-gaap_InterestBearingDepositsInBanks_638446606346763337" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606346763337" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup" xlink:label="us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_638446606346763337" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_638446606346763337"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_638446606346763337" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_RestrictedStocks" xlink:label="cffi_RestrictedStocks_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="cffi_RestrictedStocks_638446606346773279" order="5" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_638446606346773279" order="6" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestReceivable" xlink:label="us-gaap_InterestReceivable_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_InterestReceivable_638446606346773279" order="7" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill" xlink:label="us-gaap_Goodwill_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_Goodwill_638446606346773279" order="8" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_FiniteLivedIntangibleAssetsNet_638446606346773279" order="9" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BankOwnedLifeInsurance" xlink:label="us-gaap_BankOwnedLifeInsurance_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_BankOwnedLifeInsurance_638446606346773279" order="10" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="us-gaap_DeferredIncomeTaxAssetsNet_638446606346773279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_DeferredIncomeTaxAssetsNet_638446606346773279" order="11" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssets" xlink:label="us-gaap_OtherAssets_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_OtherAssets_638446606346783268" order="12" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/StatementConsolidatedStatementsOfIncome" xlink:type="extended" xlink:title="00200 - Statement - CONSOLIDATED STATEMENTS OF INCOME" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss" xlink:label="NetIncomeLoss"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="us-gaap_ProfitLoss_638446606346783268" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_638446606346783268" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_638446606346783268" order="1" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_638446606346783268" xlink:to="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_638446606346783268" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForCreditLosses" xlink:label="cffi_ProvisionForCreditLosses_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_638446606346783268" xlink:to="cffi_ProvisionForCreditLosses_638446606346783268" order="1" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="us-gaap_InterestIncomeExpenseNet_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_638446606346783268" xlink:to="us-gaap_InterestIncomeExpenseNet_638446606346783268" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="us-gaap_InterestAndDividendIncomeOperating_638446606346783268"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNet_638446606346783268" xlink:to="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="us-gaap_InterestAndFeeIncomeLoansAndLeases_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="us-gaap_InterestAndFeeIncomeLoansAndLeases_638446606346793296" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_InterestIncomeMoneyMarketDepositsAndFederalFundsSold" xlink:label="cffi_InterestIncomeMoneyMarketDepositsAndFederalFundsSold_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="cffi_InterestIncomeMoneyMarketDepositsAndFederalFundsSold_638446606346793296" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeSecuritiesUSTreasuryAndOtherUSGovernment" xlink:label="us-gaap_InterestIncomeSecuritiesUSTreasuryAndOtherUSGovernment_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="us-gaap_InterestIncomeSecuritiesUSTreasuryAndOtherUSGovernment_638446606346793296" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeSecuritiesMortgageBacked" xlink:label="us-gaap_InterestIncomeSecuritiesMortgageBacked_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="us-gaap_InterestIncomeSecuritiesMortgageBacked_638446606346793296" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxExempt" xlink:label="cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxExempt_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxExempt_638446606346793296" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxable" xlink:label="cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxable_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="cffi_InterestIncomeStateAndMunicipalObligationsOperatingTaxable_638446606346793296" order="6" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherInterestAndDividendIncome" xlink:label="us-gaap_OtherInterestAndDividendIncome_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_638446606346783268" xlink:to="us-gaap_OtherInterestAndDividendIncome_638446606346793296" order="7" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense" xlink:label="us-gaap_InterestExpense_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNet_638446606346783268" xlink:to="us-gaap_InterestExpense_638446606346793296" order="2" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseNOWAccountsMoneyMarketAccountsAndSavingsDeposits" xlink:label="us-gaap_InterestExpenseNOWAccountsMoneyMarketAccountsAndSavingsDeposits_638446606346793296"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestExpense_638446606346793296" xlink:to="us-gaap_InterestExpenseNOWAccountsMoneyMarketAccountsAndSavingsDeposits_638446606346793296" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseTimeDeposits" xlink:label="us-gaap_InterestExpenseTimeDeposits_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestExpense_638446606346793296" xlink:to="us-gaap_InterestExpenseTimeDeposits_638446606346803284" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="us-gaap_InterestExpenseBorrowings_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestExpense_638446606346793296" xlink:to="us-gaap_InterestExpenseBorrowings_638446606346803284" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseTrustPreferredSecurities" xlink:label="us-gaap_InterestExpenseTrustPreferredSecurities_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_InterestExpense_638446606346793296" xlink:to="us-gaap_InterestExpenseTrustPreferredSecurities_638446606346803284" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncome" xlink:label="us-gaap_NoninterestIncome_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_638446606346783268" xlink:to="us-gaap_NoninterestIncome_638446606346803284" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSalesOfLoansNet" xlink:label="us-gaap_GainLossOnSalesOfLoansNet_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="us-gaap_GainLossOnSalesOfLoansNet_638446606346803284" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FeesAndCommissionsMortgageBankingAndServicing" xlink:label="us-gaap_FeesAndCommissionsMortgageBankingAndServicing_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="us-gaap_FeesAndCommissionsMortgageBankingAndServicing_638446606346803284" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestIncomeServiceChargesOnDepositAccounts" xlink:label="cffi_NoninterestIncomeServiceChargesOnDepositAccounts_638446606346803284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NoninterestIncomeServiceChargesOnDepositAccounts_638446606346803284" order="3" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestIncomeOtherServiceChargesAndFees" xlink:label="cffi_NoninterestIncomeOtherServiceChargesAndFees_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NoninterestIncomeOtherServiceChargesAndFees_638446606346813284" order="4" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestIncomeWealthManagementServicesIncomeNet" xlink:label="cffi_NoninterestIncomeWealthManagementServicesIncomeNet_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NoninterestIncomeWealthManagementServicesIncomeNet_638446606346813284" order="5" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestIncomeMortgageLenderServicesIncome" xlink:label="cffi_NoninterestIncomeMortgageLenderServicesIncome_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NoninterestIncomeMortgageLenderServicesIncome_638446606346813284" order="6" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestIncomeInterchangeIncome" xlink:label="cffi_NoninterestIncomeInterchangeIncome_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NoninterestIncomeInterchangeIncome_638446606346813284" order="7" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_638446606346813284" order="8" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_OtherNoninterestIncomeLossNet" xlink:label="cffi_OtherNoninterestIncomeLossNet_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_OtherNoninterestIncomeLossNet_638446606346813284" order="9" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NonInterestInvestmentIncomeInOtherEquityInterests" xlink:label="cffi_NonInterestInvestmentIncomeInOtherEquityInterests_638446606346813284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_638446606346803284" xlink:to="cffi_NonInterestInvestmentIncomeInOtherEquityInterests_638446606346813284" order="10" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestExpense" xlink:label="us-gaap_NoninterestExpense_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_638446606346783268" xlink:to="us-gaap_NoninterestExpense_638446606346823381" order="3" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="us-gaap_LaborAndRelatedExpense_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_LaborAndRelatedExpense_638446606346823381" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OccupancyNet" xlink:label="us-gaap_OccupancyNet_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_OccupancyNet_638446606346823381" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InformationTechnologyAndDataProcessing" xlink:label="us-gaap_InformationTechnologyAndDataProcessing_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_InformationTechnologyAndDataProcessing_638446606346823381" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfessionalFees" xlink:label="us-gaap_ProfessionalFees_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_ProfessionalFees_638446606346823381" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GeneralInsuranceExpense" xlink:label="us-gaap_GeneralInsuranceExpense_638446606346823381"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_GeneralInsuranceExpense_638446606346823381" order="5" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MarketingAndAdvertisingExpense" xlink:label="us-gaap_MarketingAndAdvertisingExpense_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_MarketingAndAdvertisingExpense_638446606346833310" order="6" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LoanProcessingFee" xlink:label="us-gaap_LoanProcessingFee_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_LoanProcessingFee_638446606346833310" order="7" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoninterestExpense" xlink:label="us-gaap_OtherNoninterestExpense_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_638446606346823381" xlink:to="us-gaap_OtherNoninterestExpense_638446606346833310" order="8" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_638446606346783268" xlink:to="us-gaap_IncomeTaxExpenseBenefit_638446606346833310" order="2" use="optional" weight="-1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_638446606346833310" order="2" use="optional" weight="-1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="extended" xlink:title="00300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="ComprehensiveIncomeNetOfTax"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_638446606346833310" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_638446606346833310"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_638446606346833310" xlink:to="us-gaap_ProfitLoss_638446606346833310" order="1" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTax_638446606346846574"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_638446606346833310" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTax_638446606346846574" order="2" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_638446606346846574"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax_638446606346846574" xlink:to="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_638446606346846574" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_638446606346846574"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax_638446606346846574" xlink:to="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_638446606346846574" order="2" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_638446606346846574"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax_638446606346846574" xlink:to="us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_638446606346846574" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_638446606346846574"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_638446606346846574" order="2" use="optional" weight="-1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/StatementConsolidatedStatementsOfCashFlows" xlink:type="extended" xlink:title="00500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" order="1" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_ProfitLoss_638446606346853280" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_AdjustmentsDeferredIncomeTaxExpenseBenefit" xlink:label="cffi_AdjustmentsDeferredIncomeTaxExpenseBenefit_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="cffi_AdjustmentsDeferredIncomeTaxExpenseBenefit_638446606346853280" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForCreditLosses" xlink:label="cffi_ProvisionForCreditLosses_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="cffi_ProvisionForCreditLosses_638446606346853280" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationAndAmortization" xlink:label="us-gaap_DepreciationAndAmortization_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_DepreciationAndAmortization_638446606346853280" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForIndemnifications" xlink:label="cffi_ProvisionForIndemnifications_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="cffi_ProvisionForIndemnifications_638446606346853280" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation" xlink:label="us-gaap_ShareBasedCompensation_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_ShareBasedCompensation_638446606346853280" order="6" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_638446606346853280" order="7" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionExpenseReversalOfExpenseNoncash" xlink:label="us-gaap_PensionExpenseReversalOfExpenseNoncash_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_PensionExpenseReversalOfExpenseNoncash_638446606346853280" order="8" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_FairValueAdjustmentAccretionOfAcquisitionRelatedFairValueAdjustments" xlink:label="cffi_FairValueAdjustmentAccretionOfAcquisitionRelatedFairValueAdjustments_638446606346853280"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="cffi_FairValueAdjustmentAccretionOfAcquisitionRelatedFairValueAdjustments_638446606346853280" order="9" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_GainsLossesOnSalesOfLoansHeldForSale" xlink:label="cffi_GainsLossesOnSalesOfLoansHeldForSale_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="cffi_GainsLossesOnSalesOfLoansHeldForSale_638446606346863285" order="10" use="optional" weight="-1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale" xlink:label="us-gaap_ProceedsFromSaleOfLoansHeldForSale_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_ProceedsFromSaleOfLoansHeldForSale_638446606346863285" order="11" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet" xlink:label="us-gaap_IncreaseDecreaseInInterestPayableNet_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_IncreaseDecreaseInInterestPayableNet_638446606346863285" order="12" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_638446606346863285" order="13" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_638446606346863285" order="14" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="us-gaap_OtherNoncashIncomeExpense_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_OtherNoncashIncomeExpense_638446606346863285" order="15" use="optional" weight="-1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="us-gaap_BankOwnedLifeInsuranceIncome_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_BankOwnedLifeInsuranceIncome_638446606346863285" order="16" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale" xlink:label="us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_638446606346863285" order="17" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet" xlink:label="us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_638446606346863285" order="18" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingAssets_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_638446606346853280" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingAssets_638446606346863285" order="19" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" order="2" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities" xlink:label="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_638446606346877246"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_638446606346877246" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_PaymentsToAcquireTimeDeposits" xlink:label="cffi_PaymentsToAcquireTimeDeposits_638446606346877246"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="cffi_PaymentsToAcquireTimeDeposits_638446606346877246" order="2" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities" xlink:label="us-gaap_PaymentsForProceedsFromOtherInvestingActivities_638446606346877246"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_PaymentsForProceedsFromOtherInvestingActivities_638446606346877246" order="3" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_IncreaseDecreaseInCollateralPostedWithOtherFinancialInstitutionsNet" xlink:label="cffi_IncreaseDecreaseInCollateralPostedWithOtherFinancialInstitutionsNet_638446606346877246"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="cffi_IncreaseDecreaseInCollateralPostedWithOtherFinancialInstitutionsNet_638446606346877246" order="4" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_638446606346883299" order="5" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireLoansReceivable" xlink:label="us-gaap_PaymentsToAcquireLoansReceivable_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_PaymentsToAcquireLoansReceivable_638446606346883299" order="6" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_638446606346883299" order="7" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromCollectionOfLoansReceivable" xlink:label="us-gaap_ProceedsFromCollectionOfLoansReceivable_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_ProceedsFromCollectionOfLoansReceivable_638446606346883299" order="8" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_638446606346883299" order="9" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NetDecreaseIncreaseInCommunityBankingLoansHeldForInvestment" xlink:label="cffi_NetDecreaseIncreaseInCommunityBankingLoansHeldForInvestment_638446606346883299"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_638446606346863285" xlink:to="cffi_NetDecreaseIncreaseInCommunityBankingLoansHeldForInvestment_638446606346883299" order="10" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" order="3" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_IncreaseDecreaseInDepositsExcludingTimeDeposits" xlink:label="cffi_IncreaseDecreaseInDepositsExcludingTimeDeposits_638446606346893273"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="cffi_IncreaseDecreaseInDepositsExcludingTimeDeposits_638446606346893273" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInTimeDeposits" xlink:label="us-gaap_IncreaseDecreaseInTimeDeposits_638446606346893273"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_IncreaseDecreaseInTimeDeposits_638446606346893273" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="us-gaap_PaymentsForRepurchaseOfCommonStock_638446606346893273"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_PaymentsForRepurchaseOfCommonStock_638446606346893273" order="3" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividends" xlink:label="us-gaap_PaymentsOfDividends_638446606346893273"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_PaymentsOfDividends_638446606346893273" order="4" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt" xlink:label="us-gaap_ProceedsFromRepaymentsOfShortTermDebt_638446606346903287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_ProceedsFromRepaymentsOfShortTermDebt_638446606346903287" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="us-gaap_RepaymentsOfLongTermDebt_638446606346903287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_RepaymentsOfLongTermDebt_638446606346903287" order="6" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities" xlink:label="us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_638446606346903287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_638446606346893273" xlink:to="us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_638446606346903287" order="7" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesDetails" xlink:type="extended" xlink:title="40301 - Disclosure - Securities - Available for sale Securities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606346903287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606346903287" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_638446606346903287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_638446606346903287" order="2" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_638446606346913274" order="3" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureSecuritiesMaturitiesAndRealizedGainsAndLossesDetails" xlink:type="extended" xlink:title="40302 - Disclosure - Securities - Maturities and Realized Gains and Losses (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_638446606346913274" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_638446606346913274" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_638446606346913274" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_638446606346913274" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_638446606346913274" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_638446606346913274"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_638446606346913274" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_638446606346923369" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_638446606346923369" order="4" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureSecuritiesUnrealizedLossPositionsDetails" xlink:type="extended" xlink:title="40304 - Disclosure - Securities - Unrealized Loss Positions (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_638446606346923369" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_638446606346923369" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_638446606346923369" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_638446606346923369"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_638446606346923369" order="2" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureLoansClassesOfLoansDetails" xlink:type="extended" xlink:title="40401 - Disclosure - Loans - Classes of Loans (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_2" xlink:to="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_638446606346933272" order="1" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_2" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_638446606346933272" order="2" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureAllowanceForCreditLossesProvisionForCreditLossesDetails" xlink:type="extended" xlink:title="40502 - Disclosure - Allowance for Credit Losses - Provision for Credit Losses (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForCreditLosses" xlink:label="cffi_ProvisionForCreditLosses"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="cffi_ProvisionForCreditLosses" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_638446606346933272" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForUnfundedCommitments" xlink:label="cffi_ProvisionForUnfundedCommitments_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="cffi_ProvisionForCreditLosses" xlink:to="cffi_ProvisionForUnfundedCommitments_638446606346933272" order="2" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureAllowanceForCreditLossesAllowanceAndLoansByImpairmentMethodologyDetails" xlink:type="extended" xlink:title="40507 - Disclosure - Allowance for Credit Losses - Allowance and Loans by Impairment Methodology (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest" xlink:to="us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_638446606346933272" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_638446606346933272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest" xlink:to="us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_638446606346933272" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="LoansAndLeasesReceivableNetOfDeferredIncome"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LoansAndLeasesReceivableNetOfDeferredIncome" xlink:to="us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_638446606346943325" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LoansAndLeasesReceivableNetOfDeferredIncome" xlink:to="us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_638446606346943325" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_FinancingReceivableAcquiredLoans" xlink:label="cffi_FinancingReceivableAcquiredLoans_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LoansAndLeasesReceivableNetOfDeferredIncome" xlink:to="cffi_FinancingReceivableAcquiredLoans_638446606346943325" order="3" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureOreoChangeInOreoDetails" xlink:type="extended" xlink:title="40601 - Disclosure - OREO - Change in OREO (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="RealEstateAcquiredThroughForeclosure"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_RealEstateOwnedGross" xlink:label="cffi_RealEstateOwnedGross_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="RealEstateAcquiredThroughForeclosure" xlink:to="cffi_RealEstateOwnedGross_638446606346943325" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealEstateOwnedValuationAllowance" xlink:label="us-gaap_RealEstateOwnedValuationAllowance_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="RealEstateAcquiredThroughForeclosure" xlink:to="us-gaap_RealEstateOwnedValuationAllowance_638446606346943325" order="2" use="optional" weight="-1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureCorporatePremisesAndEquipmentDetails" xlink:type="extended" xlink:title="40701 - Disclosure - Corporate Premises and Equipment (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="PropertyPlantAndEquipmentNet"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="us-gaap_PropertyPlantAndEquipmentGross_638446606346943325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="us-gaap_PropertyPlantAndEquipmentGross_638446606346943325" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_638446606346953392" order="2" use="optional" weight="-1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureLeasesDetails" xlink:type="extended" xlink:title="40901 - Disclosure - Leases (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost" xlink:label="LeaseCost"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost" xlink:label="us-gaap_OperatingLeaseCost_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_OperatingLeaseCost_638446606346953392" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermLeaseCost" xlink:label="us-gaap_ShortTermLeaseCost_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_ShortTermLeaseCost_638446606346953392" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseInterestExpense" xlink:label="us-gaap_FinanceLeaseInterestExpense_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_FinanceLeaseInterestExpense_638446606346953392" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization" xlink:label="us-gaap_FinanceLeaseRightOfUseAssetAmortization_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_FinanceLeaseRightOfUseAssetAmortization_638446606346953392" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableLeaseCost" xlink:label="us-gaap_VariableLeaseCost_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_VariableLeaseCost_638446606346953392" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_OperatingLeaseAndFinanceLeasePayments" xlink:label="OperatingLeaseAndFinanceLeasePayments"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeasePayments" xlink:label="us-gaap_OperatingLeasePayments_638446606346953392"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeaseAndFinanceLeasePayments" xlink:to="us-gaap_OperatingLeasePayments_638446606346953392" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseInterestPaymentOnLiability" xlink:label="us-gaap_FinanceLeaseInterestPaymentOnLiability_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeaseAndFinanceLeasePayments" xlink:to="us-gaap_FinanceLeaseInterestPaymentOnLiability_638446606346963290" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeasePrincipalPayments" xlink:label="us-gaap_FinanceLeasePrincipalPayments_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeaseAndFinanceLeasePayments" xlink:to="us-gaap_FinanceLeasePrincipalPayments_638446606346963290" order="3" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetails" xlink:type="extended" xlink:title="40902 - Disclosure - Leases - Maturities of Corporation's Lease Liabilities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="FinanceLeaseLiabilityPaymentsDue"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_638446606346963290" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_638446606346963290" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_638446606346963290" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_638446606346963290" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_638446606346963290" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo" xlink:label="us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_638446606346963290"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_638446606346963290" order="6" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="LesseeOperatingLeaseLiabilityPaymentsDue"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_638446606346973289" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_638446606346973289" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_638446606346973289" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_638446606346973289" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_638446606346973289" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_638446606346973289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_638446606346973289" order="6" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureTimeDepositsTimeDepositsDetails" xlink:type="extended" xlink:title="41001 - Disclosure - Time Deposits - Time Deposits (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits" xlink:label="TimeDeposits"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_TimeDeposits250000OrMore" xlink:label="cffi_TimeDeposits250000OrMore_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="cffi_TimeDeposits250000OrMore_638446606346983284" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_TimeDepositsLessThan250000" xlink:label="cffi_TimeDepositsLessThan250000_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="cffi_TimeDepositsLessThan250000_638446606346983284" order="2" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureTimeDepositsRemainingMaturitiesOnTimeDepositsDetails" xlink:type="extended" xlink:title="41002 - Disclosure - Time Deposits - Remaining Maturities on Time Deposits (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits" xlink:label="TimeDeposits"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearOne" xlink:label="us-gaap_TimeDepositMaturitiesYearOne_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesYearOne_638446606346983284" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearTwo" xlink:label="us-gaap_TimeDepositMaturitiesYearTwo_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesYearTwo_638446606346983284" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearThree" xlink:label="us-gaap_TimeDepositMaturitiesYearThree_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesYearThree_638446606346983284" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearFour" xlink:label="us-gaap_TimeDepositMaturitiesYearFour_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesYearFour_638446606346983284" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearFive" xlink:label="us-gaap_TimeDepositMaturitiesYearFive_638446606346983284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesYearFive_638446606346983284" order="5" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesAfterYearFive" xlink:label="us-gaap_TimeDepositMaturitiesAfterYearFive_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="TimeDeposits" xlink:to="us-gaap_TimeDepositMaturitiesAfterYearFive_638446606346993284" order="6" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureEquityOtherComprehensiveIncomeAndEarningsPerShareChangesInAccumulatedOtherComprehensiveIncomeLossNetDetails" xlink:type="extended" xlink:title="41202 - Disclosure - Equity, Other Comprehensive Income and Earnings Per Share - Changes in Accumulated Other Comprehensive Income (Loss), Net (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:to="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_638446606346993284" order="1" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_638446606346993284" xlink:to="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_638446606346993284" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_638446606346993284" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodTax_638446606346993284" order="2" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_638446606346993284" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_638446606346993284" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_638446606346993284" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_638446606346993284"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_638446606346993284" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_638446606346993284" order="2" use="optional" weight="-1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails" xlink:type="extended" xlink:title="41301 - Disclosure - Income Taxes - Components of Income Tax Expense (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="us-gaap_CurrentIncomeTaxExpenseBenefit_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_CurrentIncomeTaxExpenseBenefit_638446606347003289" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredIncomeTaxExpenseBenefit_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_DeferredIncomeTaxExpenseBenefit_638446606347003289" order="2" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureIncomeTaxesIncomeTaxRateReconciliationDetails" xlink:type="extended" xlink:title="41302 - Disclosure - Income Taxes - Income Tax Rate Reconciliation (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="EffectiveIncomeTaxRateContinuingOperations"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_638446606347003289" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_638446606347003289" order="2" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_EffectiveIncomeTaxRateReconciliationExcessCompensationPercentage" xlink:label="cffi_EffectiveIncomeTaxRateReconciliationExcessCompensationPercentage_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="cffi_EffectiveIncomeTaxRateReconciliationExcessCompensationPercentage_638446606347003289" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsurancePercent" xlink:label="cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsurancePercent_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsurancePercent_638446606347003289" order="4" use="optional" weight="-1" priority="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_638446606347003289"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_638446606347003289" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_EffectiveIncomeTaxRateReconciliationChangeInEffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate" xlink:label="cffi_EffectiveIncomeTaxRateReconciliationChangeInEffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="cffi_EffectiveIncomeTaxRateReconciliationChangeInEffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_638446606347013288" order="6" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_638446606347013288" order="7" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_638446606347013288" order="8" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_638446606347013288" order="9" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_638446606347013288" order="1" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_EffectiveIncomeTaxRateReconciliationExcessCompensation" xlink:label="cffi_EffectiveIncomeTaxRateReconciliationExcessCompensation_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="cffi_EffectiveIncomeTaxRateReconciliationExcessCompensation_638446606347013288" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome" xlink:label="us-gaap_IncomeTaxReconciliationTaxExemptIncome_638446606347013288"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationTaxExemptIncome_638446606347013288" order="3" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_IncomeTaxRateReconciliationChangeInEnactedTaxRateContributionOfRealProperty" xlink:label="cffi_IncomeTaxRateReconciliationChangeInEnactedTaxRateContributionOfRealProperty_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="cffi_IncomeTaxRateReconciliationChangeInEnactedTaxRateContributionOfRealProperty_638446606347023287" order="4" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsuranceAmount" xlink:label="cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsuranceAmount_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="cffi_EffectiveIncomeTaxRateReconciliationBankOwnedLifeInsuranceAmount_638446606347023287" order="5" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:label="us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_638446606347023287" order="6" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsInvestment" xlink:label="us-gaap_IncomeTaxReconciliationTaxCreditsInvestment_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationTaxCreditsInvestment_638446606347023287" order="7" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationOtherReconcilingItems" xlink:label="us-gaap_IncomeTaxReconciliationOtherReconcilingItems_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationOtherReconcilingItems_638446606347023287" order="8" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_638446606347023287"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_638446606347023287" order="9" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended" xlink:title="41303 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="DeferredTaxAssetsLiabilitiesNet"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="us-gaap_DeferredTaxAssetsGross_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsLiabilitiesNet" xlink:to="us-gaap_DeferredTaxAssetsGross_638446606347033302" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_638446606347033302" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross" xlink:label="us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_638446606347033302" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_638446606347033302" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DeferredTaxAssetsFairMarketValueAdjustmentsRelatedToAcquisition" xlink:label="cffi_DeferredTaxAssetsFairMarketValueAdjustmentsRelatedToAcquisition_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="cffi_DeferredTaxAssetsFairMarketValueAdjustmentsRelatedToAcquisition_638446606347033302" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DeferredTaxAssetsLeaseLiabilities" xlink:label="cffi_DeferredTaxAssetsLeaseLiabilities_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="cffi_DeferredTaxAssetsLeaseLiabilities_638446606347033302" order="5" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_638446606347033302" order="6" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_638446606347033302" order="7" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_638446606347033302"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_638446606347033302" order="8" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="us-gaap_DeferredTaxAssetsOther_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_638446606347033302" xlink:to="us-gaap_DeferredTaxAssetsOther_638446606347043279" order="9" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxAssetsLiabilitiesNet" xlink:to="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" order="2" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsExcludingCoreDepositIntangible" xlink:label="cffi_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsExcludingCoreDepositIntangible_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" xlink:to="cffi_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsExcludingCoreDepositIntangible_638446606347043279" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationAndBenefitsDefinedBenefitPlan" xlink:label="cffi_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationAndBenefitsDefinedBenefitPlan_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" xlink:to="cffi_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationAndBenefitsDefinedBenefitPlan_638446606347043279" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DeferredTaxLiabilitiesRightOfUseAssets" xlink:label="cffi_DeferredTaxLiabilitiesRightOfUseAssets_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" xlink:to="cffi_DeferredTaxLiabilitiesRightOfUseAssets_638446606347043279" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesDerivatives" xlink:label="us-gaap_DeferredTaxLiabilitiesDerivatives_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" xlink:to="us-gaap_DeferredTaxLiabilitiesDerivatives_638446606347043279" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment" xlink:label="us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_638446606347043279"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_638446606347043279" xlink:to="us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_638446606347043279" order="5" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureEmployeeBenefitPlansDefinedBenefitPlansProjectedBenefitObligationsPlanAssetsFundedStatusAndRateAssumptionsDetails" xlink:type="extended" xlink:title="41402 - Disclosure - Employee Benefit Plans - Defined Benefit Plans - Projected Benefit Obligations, Plan Assets, Funded Status and Rate Assumptions (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeDeferredTaxes" xlink:label="cffi_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeDeferredTaxes_638446606347053272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:to="cffi_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeDeferredTaxes_638446606347053272" order="1" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax" xlink:label="us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_638446606347053272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:to="us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_638446606347053272" order="2" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax" xlink:label="us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_638446606347053272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:to="us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_638446606347053272" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="DefinedBenefitPlanFundedStatusOfPlan"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="us-gaap_DefinedBenefitPlanBenefitObligation_638446606347053272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanFundedStatusOfPlan" xlink:to="us-gaap_DefinedBenefitPlanBenefitObligation_638446606347053272" order="1" use="optional" weight="-1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_638446606347053272"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanFundedStatusOfPlan" xlink:to="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_638446606347053272" order="2" use="optional" weight="1" priority="2"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureEmployeeBenefitPlansDefinedBenefitPlansComponentsOfNetPeriodicPensionCostsDetails" xlink:type="extended" xlink:title="41403 - Disclosure - Employee Benefit Plans - Defined Benefit Plans - Components of Net Periodic Pension Costs (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="DefinedBenefitPlanNetPeriodicBenefitCost"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="us-gaap_DefinedBenefitPlanServiceCost_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="us-gaap_DefinedBenefitPlanServiceCost_638446606347063286" order="1" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent" xlink:label="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DefinedBenefitPlanNetPeriodicBenefitCost" xlink:to="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="us-gaap_DefinedBenefitPlanInterestCost_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" xlink:to="us-gaap_DefinedBenefitPlanInterestCost_638446606347063286" order="1" use="optional" weight="1" priority="4"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" xlink:to="us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_638446606347063286" order="2" use="optional" weight="-1" priority="4"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" xlink:to="us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_638446606347063286" order="3" use="optional" weight="1" priority="3"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_DefinedBenefitPlanPensionSettlementChargesBeforeTax" xlink:label="cffi_DefinedBenefitPlanPensionSettlementChargesBeforeTax_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" xlink:to="cffi_DefinedBenefitPlanPensionSettlementChargesBeforeTax_638446606347063286" order="4" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_638446606347063286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_638446606347063286" xlink:to="us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_638446606347063286" order="5" use="optional" weight="-1" priority="3"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureFairValueOfAssetsAndLiabilitiesFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xlink:type="extended" xlink:title="41902 - Disclosure - Fair Value of Assets and Liabilities - Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="AssetsFairValueDisclosure"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_638446606347073286" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="us-gaap_LoansHeldForSaleFairValueDisclosure_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_LoansHeldForSaleFairValueDisclosure_638446606347073286" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentsFairValueDisclosure" xlink:label="us-gaap_InvestmentsFairValueDisclosure_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_InvestmentsFairValueDisclosure_638446606347073286" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssets" xlink:label="us-gaap_DerivativeAssets_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_DerivativeAssets_638446606347073286" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="us-gaap_LiabilitiesFairValueDisclosure"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities" xlink:label="us-gaap_DerivativeLiabilities_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesFairValueDisclosure" xlink:to="us-gaap_DerivativeLiabilities_638446606347073286" order="1" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureBusinessSegmentsSegmentReportingDetails" xlink:type="extended" xlink:title="42001 - Disclosure - Business Segments - Segment Reporting (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues" xlink:label="us-gaap_Revenues_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_Revenues_638446606347073286" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="us-gaap_InterestIncomeExpenseNet_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Revenues_638446606347073286" xlink:to="us-gaap_InterestIncomeExpenseNet_638446606347073286" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSalesOfLoansNet" xlink:label="us-gaap_GainLossOnSalesOfLoansNet_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Revenues_638446606347073286" xlink:to="us-gaap_GainLossOnSalesOfLoansNet_638446606347073286" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncomeOther" xlink:label="us-gaap_NoninterestIncomeOther_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Revenues_638446606347073286" xlink:to="us-gaap_NoninterestIncomeOther_638446606347073286" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="us-gaap_ProvisionForLoanLossesExpensed_638446606347073286"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_ProvisionForLoanLossesExpensed_638446606347073286" order="2" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestExpenseNet" xlink:label="cffi_NoninterestExpenseNet_638446606347086456"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="cffi_NoninterestExpenseNet_638446606347086456" order="3" use="optional" weight="-1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureHoldingCompanyCondensedFinancialInformationCondensedBalanceSheetDetails" xlink:type="extended" xlink:title="42201 - Disclosure - Holding Company Condensed Financial Information - Condensed Balance Sheet (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="LiabilitiesAndStockholdersEquity"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust" xlink:label="us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_638446606347086456"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust_638446606347086456" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebt" xlink:label="us-gaap_SecuredDebt_638446606347086456"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_SecuredDebt_638446606347086456" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilities" xlink:label="us-gaap_OtherLiabilities_638446606347086456"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_OtherLiabilities_638446606347086456" order="3" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_638446606347086456"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_StockholdersEquity_638446606347086456" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets" xlink:label="Assets"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Cash" xlink:label="us-gaap_Cash_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_Cash_638446606347093325" order="1" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssets" xlink:label="us-gaap_OtherAssets_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_OtherAssets_638446606347093325" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_638446606347093325" order="3" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureHoldingCompanyCondensedFinancialInformationStatementsOfIncomeDetails" xlink:type="extended" xlink:title="42202 - Disclosure - Holding Company Condensed Financial Information - Statements of Income (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss" xlink:label="ProfitLoss"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="us-gaap_InterestExpenseBorrowings_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ProfitLoss" xlink:to="us-gaap_InterestExpenseBorrowings_638446606347093325" order="1" use="optional" weight="-1" priority="3"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeDividend" xlink:label="us-gaap_InvestmentIncomeDividend_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ProfitLoss" xlink:to="us-gaap_InvestmentIncomeDividend_638446606347093325" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax" xlink:label="us-gaap_IncomeLossFromSubsidiariesBeforeTax_638446606347093325"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ProfitLoss" xlink:to="us-gaap_IncomeLossFromSubsidiariesBeforeTax_638446606347093325" order="3" use="optional" weight="1" priority="4"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="us-gaap_NoninterestIncomeOtherOperatingIncome_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ProfitLoss" xlink:to="us-gaap_NoninterestIncomeOtherOperatingIncome_638446606347103276" order="4" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_NoninterestExpenseNet" xlink:label="cffi_NoninterestExpenseNet_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ProfitLoss" xlink:to="cffi_NoninterestExpenseNet_638446606347103276" order="5" use="optional" weight="-1" priority="3"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureOtherNoninterestExpensesDetails" xlink:type="extended" xlink:title="42301 - Disclosure - Other Noninterest Expenses (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoninterestExpense" xlink:label="OtherNoninterestExpense"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealEstatePartnershipInvestmentSubsidiariesNetIncomeLossBeforeTax" xlink:label="us-gaap_RealEstatePartnershipInvestmentSubsidiariesNetIncomeLossBeforeTax_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="us-gaap_RealEstatePartnershipInvestmentSubsidiariesNetIncomeLossBeforeTax_638446606347103276" order="1" use="optional" weight="-1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanOtherCosts" xlink:label="us-gaap_DefinedBenefitPlanOtherCosts_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="us-gaap_DefinedBenefitPlanOtherCosts_638446606347103276" order="2" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Communication" xlink:label="us-gaap_Communication_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="us-gaap_Communication_638446606347103276" order="3" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_TravelEntertainmentAndEmployeeEducationExpense" xlink:label="cffi_TravelEntertainmentAndEmployeeEducationExpense_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="cffi_TravelEntertainmentAndEmployeeEducationExpense_638446606347103276" order="4" use="optional" weight="1" priority="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_AllOtherNoninterestExpenses" xlink:label="cffi_AllOtherNoninterestExpenses_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="cffi_AllOtherNoninterestExpenses_638446606347103276" order="5" use="optional" weight="1"/>
<loc xlink:type="locator" xlink:href="cffi-20231231.xsd#cffi_ProvisionForLossOnIndemnification" xlink:label="cffi_ProvisionForLossOnIndemnification_638446606347103276"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherNoninterestExpense" xlink:to="cffi_ProvisionForLossOnIndemnification_638446606347103276" order="6" use="optional" weight="1"/>
</calculationLink>
<calculationLink xlink:role="http://cffc.com/role/DisclosureLeasesMaturitiesOfCorporationSLeaseLiabilitiesDetailscalc2" xlink:type="extended" xlink:title="9941002 - Disclosure - Leases - Maturities of Corporation's Lease Liabilities (Details)_Calc_2" xmlns="http://www.xbrl.org/2003/linkbase">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="FinanceLeaseLiabilityPaymentsDue"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount" xlink:label="us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_638446606347113298"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_638446606347113298" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiability" xlink:label="us-gaap_FinanceLeaseLiability_638446606347113298"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinanceLeaseLiabilityPaymentsDue" xlink:to="us-gaap_FinanceLeaseLiability_638446606347113298" order="2" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="LesseeOperatingLeaseLiabilityPaymentsDue"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_638446606347113298"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_638446606347113298" order="1" use="optional" weight="1" priority="2"/>
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability" xlink:label="us-gaap_OperatingLeaseLiability_638446606347113298"/>
<calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_OperatingLeaseLiability_638446606347113298" order="2" use="optional" weight="1" priority="2"/>
</calculationLink>
</link:linkbase>


1 Subsequent Filing that References this Filing

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 2/28/24  C&F Financial Corp.               S-8         2/28/24    7:2.2M


17 Previous Filings that this Filing References

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 2/28/23  C&F Financial Corp.               10-K       12/31/22  139:31M
11/08/22  C&F Financial Corp.               10-Q        9/30/22   85:24M
 8/01/22  C&F Financial Corp.               10-Q        6/30/22   85:23M
 4/21/22  C&F Financial Corp.               8-K:5,9     4/19/22   11:380K
 3/01/22  C&F Financial Corp.               10-K       12/31/21  145:31M
 2/16/22  C&F Financial Corp.               8-K:5,7,9   2/15/22   13:369K
12/27/21  C&F Financial Corp.               8-K:5,8,9  12/21/21   18:1.3M
 3/03/21  C&F Financial Corp.               10-K       12/31/20  151:31M                                    Toppan Merrill Bridge/FA
12/17/20  C&F Financial Corp.               8-K:5,9    12/15/20   11:359K
 9/30/20  C&F Financial Corp.               8-K:1,2,8,9 9/29/20   13:668K
 3/03/20  C&F Financial Corp.               10-K       12/31/19  138:32M                                    Toppan Merrill Bridge/FA
 6/14/19  C&F Financial Corp.               8-K:5,9     6/13/19    2:104K                                   Toppan Merrill Bridge/FA
 3/08/18  C&F Financial Corp.               10-K       12/31/17  147:35M                                    Toppan Merrill Bridge/FA
11/08/17  C&F Financial Corp.               10-Q        9/30/17   79:24M
 3/04/16  C&F Financial Corp.               10-K       12/31/15  146:31M                                    Toppan Merrill Bridge/FA
 3/15/13  C&F Financial Corp.               DEF 14A     4/16/13    1:1.2M                                   Broadridge Fin’l So… Inc
 1/14/09  C&F Financial Corp.               8-K:1,3,5,9 1/08/09    6:549K                                   Donnelley … Solutions/FA
Top
Filing Submission 0000913341-24-000009   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Tue., May 14, 1:49:32.2am ET