| | | | | | | | | | | | | | | | | | | | | |
<?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> |