<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e980f-2a79-79ef-a9d6-ac002cbceabc,g:2d8b8e38-b5df-4e07-8092-8a982dc4245a-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" 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">
  <link:roleRef roleURI="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="simple" xlink:href="tpvg-20260630.xsd#CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e980f-36d4-77e8-b922-5ef62b39d87b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e980f-36d4-7486-be0c-a4ed1f2c53a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e980f-36d4-77e8-b922-5ef62b39d87b" xlink:to="loc_us-gaap_CommonStockValue_019e980f-36d4-7486-be0c-a4ed1f2c53a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019e980f-36d4-7e24-a47d-fa7ec61fca86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e980f-36d4-77e8-b922-5ef62b39d87b" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019e980f-36d4-7e24-a47d-fa7ec61fca86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e980f-36d4-7d01-8d91-37069db199c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e980f-36d4-77e8-b922-5ef62b39d87b" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e980f-36d4-7d01-8d91-37069db199c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019e980f-36d4-7e51-a0e2-58211531dd63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e980f-36d4-77e8-b922-5ef62b39d87b" xlink:to="loc_us-gaap_PreferredStockValue_019e980f-36d4-7e51-a0e2-58211531dd63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e980f-36d4-71f8-84f0-25112f531a38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e980f-36d4-74b8-aa22-a85286c92c22" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e980f-36d4-71f8-84f0-25112f531a38" xlink:to="loc_us-gaap_Liabilities_019e980f-36d4-74b8-aa22-a85286c92c22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e980f-36d4-719c-afc1-d85f4e413531" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e980f-36d4-71f8-84f0-25112f531a38" xlink:to="loc_us-gaap_StockholdersEquity_019e980f-36d4-719c-afc1-d85f4e413531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019e980f-36d4-7302-8f43-c3da83a47279" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e980f-36d4-71f8-84f0-25112f531a38" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019e980f-36d4-7302-8f43-c3da83a47279" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_019e980f-36d4-78ea-8aa9-3c52ea5bf3bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnsecuredDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:to="loc_us-gaap_UnsecuredDebt_019e980f-36d4-78ea-8aa9-3c52ea5bf3bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019e980f-36d4-7363-9d0f-260eec1e645c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:to="loc_us-gaap_LineOfCredit_019e980f-36d4-7363-9d0f-260eec1e645c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementFeePayable_019e980f-36d4-7101-96ba-d08371322560" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ManagementFeePayable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:to="loc_us-gaap_ManagementFeePayable_019e980f-36d4-7101-96ba-d08371322560" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019e980f-36d4-77a8-859f-b9abb97b1228" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019e980f-36d4-77a8-859f-b9abb97b1228" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncentiveFeePayable_019e980f-36d4-7f9e-82d4-c0d7b68c8979" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncentiveFeePayable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e980f-36d4-7791-b928-a32249f84b3f" xlink:to="loc_us-gaap_IncentiveFeePayable_019e980f-36d4-7f9e-82d4-c0d7b68c8979" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsOwnedPrincipalInvestmentsAtFairValue_019e980f-36d4-7db8-9203-58c85f8e40e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentsOwnedPrincipalInvestmentsAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:to="loc_us-gaap_FinancialInstrumentsOwnedPrincipalInvestmentsAtFairValue_019e980f-36d4-7db8-9203-58c85f8e40e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e980f-36d4-7ddb-a7e1-17d1eaea2ddf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e980f-36d4-7ddb-a7e1-17d1eaea2ddf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019e980f-36d4-72fd-a846-0c5c61e125bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019e980f-36d4-72fd-a846-0c5c61e125bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCostsCurrent_019e980f-36d4-78fa-a76f-22596f543e27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredCostsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:to="loc_us-gaap_DeferredCostsCurrent_019e980f-36d4-78fa-a76f-22596f543e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_019e980f-36d4-73bf-bec1-a9128812e865" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e980f-36d4-720b-a7f2-bd3b8d2deeaf" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_019e980f-36d4-73bf-bec1-a9128812e865" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSUnaudited" xlink:type="simple" xlink:href="tpvg-20260630.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSUnaudited"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e980f-36d4-73f0-9fdf-f53d59d1708e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-7c37-9932-b12c8cf0c7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e980f-36d4-73f0-9fdf-f53d59d1708e" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-7c37-9932-b12c8cf0c7e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyIncentiveFeeWaivedIncomeBased_019e980f-36d4-74ae-84f8-904dcd11e821" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyIncentiveFeeWaivedIncomeBased"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e980f-36d4-73f0-9fdf-f53d59d1708e" xlink:to="loc_us-gaap_InvestmentCompanyIncentiveFeeWaivedIncomeBased_019e980f-36d4-74ae-84f8-904dcd11e821" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019e980f-36d4-7155-9ad7-71fdd68a2109" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7c50-9b2c-eef89ff31129" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019e980f-36d4-7155-9ad7-71fdd68a2109" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7c50-9b2c-eef89ff31129" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e980f-36d4-79d5-9426-e6604f860876" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019e980f-36d4-7155-9ad7-71fdd68a2109" xlink:to="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e980f-36d4-79d5-9426-e6604f860876" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_019e980f-36d4-729b-ae2c-40d9aa623afc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_019e980f-36d4-7c5c-b1da-3bbdd6383165" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnInvestments_019e980f-36d4-729b-ae2c-40d9aa623afc" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_019e980f-36d4-7c5c-b1da-3bbdd6383165" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnInvestments_019e980f-36d4-7458-a79a-c8e687a48094" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnInvestments_019e980f-36d4-729b-ae2c-40d9aa623afc" xlink:to="loc_us-gaap_UnrealizedGainLossOnInvestments_019e980f-36d4-7458-a79a-c8e687a48094" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e980f-36d4-70f2-aad4-75e09eefaedf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019e980f-36d4-786f-9881-506e04d04d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e980f-36d4-70f2-aad4-75e09eefaedf" xlink:to="loc_us-gaap_NetInvestmentIncome_019e980f-36d4-786f-9881-506e04d04d2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExciseTaxExpense_019e980f-36d4-71d2-94cd-60dd7abca32b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyExciseTaxExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e980f-36d4-70f2-aad4-75e09eefaedf" xlink:to="loc_us-gaap_InvestmentCompanyExciseTaxExpense_019e980f-36d4-71d2-94cd-60dd7abca32b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e980f-36d4-7bea-ba3c-7bfa7a6a091e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e980f-36d4-721e-ac9c-27556e90e756" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e980f-36d4-7bea-ba3c-7bfa7a6a091e" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e980f-36d4-721e-ac9c-27556e90e756" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_019e980f-36d4-73da-bf32-158f04322182" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e980f-36d4-7bea-ba3c-7bfa7a6a091e" xlink:to="loc_us-gaap_GainLossOnInvestments_019e980f-36d4-73da-bf32-158f04322182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementFeeExpense_019e980f-36d4-732c-af84-7137fb2b6990" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ManagementFeeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:to="loc_us-gaap_ManagementFeeExpense_019e980f-36d4-732c-af84-7137fb2b6990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncentiveFeeExpense_019e980f-36d4-709d-90a5-0907c3dd31e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncentiveFeeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:to="loc_us-gaap_IncentiveFeeExpense_019e980f-36d4-709d-90a5-0907c3dd31e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019e980f-36d4-7e54-bd8c-74fe42d18f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:to="loc_us-gaap_InterestExpenseOperating_019e980f-36d4-7e54-bd8c-74fe42d18f5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdministrativeFeesExpense_019e980f-36d4-7325-a376-641963a4fea9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdministrativeFeesExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:to="loc_us-gaap_AdministrativeFeesExpense_019e980f-36d4-7325-a376-641963a4fea9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019e980f-36d4-7bc5-b361-a9c0af5ba365" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e980f-36d4-78dd-94c7-1eaf36031315" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019e980f-36d4-7bc5-b361-a9c0af5ba365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7ad0-81c8-7520a72ad20e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_019e980f-36d4-717b-bb40-c96a08dab2b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7ad0-81c8-7520a72ad20e" xlink:to="loc_us-gaap_InvestmentIncomeInterest_019e980f-36d4-717b-bb40-c96a08dab2b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019e980f-36d4-7637-98bb-25031fb4adbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7ad0-81c8-7520a72ad20e" xlink:to="loc_us-gaap_NoninterestIncome_019e980f-36d4-7637-98bb-25031fb4adbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_019e980f-36d4-7190-99ec-9b6390d0b27f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FeeIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7ad0-81c8-7520a72ad20e" xlink:to="loc_us-gaap_FeeIncome_019e980f-36d4-7190-99ec-9b6390d0b27f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e980f-36d4-70f9-9518-e42e8abbc298" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e980f-36d4-7ad0-81c8-7520a72ad20e" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e980f-36d4-70f9-9518-e42e8abbc298" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited" xlink:type="simple" xlink:href="tpvg-20260630.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_019e980f-36d4-7222-971e-d4f6f7e05de1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_019e980f-36d4-7222-971e-d4f6f7e05de1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e980f-36d4-768f-99f6-38d779015332" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e980f-36d4-768f-99f6-38d779015332" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019e980f-36d4-7e83-9271-cd8679383067" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019e980f-36d4-7e83-9271-cd8679383067" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInManagementFeePayable_019e980f-36d4-7790-853b-9df618b3164b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInManagementFeePayable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_IncreaseDecreaseInManagementFeePayable_019e980f-36d4-7790-853b-9df618b3164b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncentiveFeePayable_019f6fcf-e3ca-700a-97b8-1ab965d35fac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncentiveFeePayable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_IncreaseDecreaseInIncentiveFeePayable_019f6fcf-e3ca-700a-97b8-1ab965d35fac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_AccretionReductionOfEndOfTermPaymentsNet_019e980f-36d4-78b0-b5a0-e2a4a0c1b4ad" xlink:href="tpvg-20260630.xsd#tpvg_AccretionReductionOfEndOfTermPaymentsNet"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_tpvg_AccretionReductionOfEndOfTermPaymentsNet_019e980f-36d4-78b0-b5a0-e2a4a0c1b4ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e980f-36d4-7242-a499-f40c8363348f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e980f-36d4-7242-a499-f40c8363348f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e980f-36d4-7d6e-bb56-979f37d9b4fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_NetIncomeLoss_019e980f-36d4-7d6e-bb56-979f37d9b4fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019e980f-36d4-737c-9b6a-e72d8d3c3c69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019e980f-36d4-737c-9b6a-e72d8d3c3c69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnInvestments_019e980f-36d4-7e84-a89c-cff37dcc9ebc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnInvestments"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_UnrealizedGainLossOnInvestments_019e980f-36d4-7e84-a89c-cff37dcc9ebc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e980f-36d4-7be6-91ce-1bfd261cc21b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e980f-36d4-7be6-91ce-1bfd261cc21b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e980f-36d4-7984-b5e9-7093d0f07f8b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e980f-36d4-7984-b5e9-7093d0f07f8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfInvestments_019e980f-36d4-7f0d-a575-9de1e44b7fb2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSaleOfInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7dcf-8f09-ae1258caca7e" xlink:to="loc_us-gaap_GainLossOnSaleOfInvestments_019e980f-36d4-7f0d-a575-9de1e44b7fb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e980f-36d4-7aec-8153-62fcd077b691" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-788e-b6d7-9b49fb29ccb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e980f-36d4-7aec-8153-62fcd077b691" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-788e-b6d7-9b49fb29ccb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7ad8-873f-c1ee9282fedb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e980f-36d4-7aec-8153-62fcd077b691" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e980f-36d4-7ad8-873f-c1ee9282fedb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_019e980f-36d4-77e4-a0d8-66e84159e8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_019e980f-36d4-77e4-a0d8-66e84159e8f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_019e980f-36d4-7317-8786-3321769870a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_019e980f-36d4-7317-8786-3321769870a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDistributionsToAffiliates_019e980f-36d4-757e-b4e6-99a553472f88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDistributionsToAffiliates"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_PaymentsOfDistributionsToAffiliates_019e980f-36d4-757e-b4e6-99a553472f88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_019e980f-36d4-7020-8add-5b08bd937989" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfUnsecuredDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_019e980f-36d4-7020-8add-5b08bd937989" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e980f-36d4-7ede-9666-ff73c5033e12" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e980f-36d4-7ede-9666-ff73c5033e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfUnsecuredDebt_019e980f-36d4-7f13-97f6-d9994c8c4981" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfUnsecuredDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_us-gaap_RepaymentsOfUnsecuredDebt_019e980f-36d4-7f13-97f6-d9994c8c4981" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_PaymentOfDeferredCreditFacilityCosts_019f6fd4-63b0-7021-aae9-8b318e6bd7e4" xlink:href="tpvg-20260630.xsd#tpvg_PaymentOfDeferredCreditFacilityCosts"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e980f-36d4-7047-b88b-ff63acfbbc32" xlink:to="loc_tpvg_PaymentOfDeferredCreditFacilityCosts_019f6fd4-63b0-7021-aae9-8b318e6bd7e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e980f-36d4-731c-b066-c231ce3ba4e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019e980f-36d4-7a60-9689-8d1152d8548f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e980f-36d4-731c-b066-c231ce3ba4e7" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019e980f-36d4-7a60-9689-8d1152d8548f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e980f-36d4-73ff-80b7-4744c6a0b2da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e980f-36d4-731c-b066-c231ce3ba4e7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e980f-36d4-73ff-80b7-4744c6a0b2da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/BorrowingsScheduleofDebtDetails" xlink:type="simple" xlink:href="tpvg-20260630.xsd#BorrowingsScheduleofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/BorrowingsScheduleofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e980f-36d5-7bc4-ad91-8416dc3f7dc1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e980f-36d5-7ef3-8089-dceaad9af78d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e980f-36d5-7bc4-ad91-8416dc3f7dc1" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019e980f-36d5-7ef3-8089-dceaad9af78d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019e980f-36d5-7f5a-9e01-4ae351587345" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e980f-36d5-7bc4-ad91-8416dc3f7dc1" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019e980f-36d5-7f5a-9e01-4ae351587345" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e980f-36d5-7b76-8ab0-183525fc2713" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e980f-36d5-7d21-a1d3-e40189d7e665" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e980f-36d5-7b76-8ab0-183525fc2713" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019e980f-36d5-7d21-a1d3-e40189d7e665" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019e980f-36d5-7836-99d9-1a02e6ff4180" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e980f-36d5-7b76-8ab0-183525fc2713" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019e980f-36d5-7836-99d9-1a02e6ff4180" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/BorrowingsScheduleofInterestExpenseandAmortizationofFeesDetails" xlink:type="simple" xlink:href="tpvg-20260630.xsd#BorrowingsScheduleofInterestExpenseandAmortizationofFeesDetails"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/BorrowingsScheduleofInterestExpenseandAmortizationofFeesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDebtExpense_019e980f-36d5-7ff1-a420-285e625e4beb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDebtExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e980f-36d5-7b1e-be65-54ac176027e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDebtExpense_019e980f-36d5-7ff1-a420-285e625e4beb" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e980f-36d5-7b1e-be65-54ac176027e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e980f-36d5-7c98-af07-a460c844ac73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDebtExpense_019e980f-36d5-7ff1-a420-285e625e4beb" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e980f-36d5-7c98-af07-a460c844ac73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_019e980f-36d5-7805-bb3a-2b07843bea94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityCommitmentFeeAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDebtExpense_019e980f-36d5-7ff1-a420-285e625e4beb" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_019e980f-36d5-7805-bb3a-2b07843bea94" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/CommitmentsandContingenciesScheduleofExpiringUnfundedCommitmentsDetails" xlink:type="simple" xlink:href="tpvg-20260630.xsd#CommitmentsandContingenciesScheduleofExpiringUnfundedCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/CommitmentsandContingenciesScheduleofExpiringUnfundedCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_ContractualObligationContingentCommitments_019e980f-36d5-7029-b8ae-bdf925541761" xlink:href="tpvg-20260630.xsd#tpvg_ContractualObligationContingentCommitments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:to="loc_tpvg_ContractualObligationContingentCommitments_019e980f-36d5-7029-b8ae-bdf925541761" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInThirdYear_019e980f-36d5-7815-a664-6fa0cdddec96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligationDueInThirdYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:to="loc_us-gaap_ContractualObligationDueInThirdYear_019e980f-36d5-7815-a664-6fa0cdddec96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInNextTwelveMonths_019e980f-36d5-76a3-8a38-26ad57322220" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:to="loc_us-gaap_ContractualObligationDueInNextTwelveMonths_019e980f-36d5-76a3-8a38-26ad57322220" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear_019f826d-d13b-7d70-9bb0-0dcebe5b961c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:to="loc_us-gaap_ContractualObligationFutureMinimumPaymentsDueRemainderOfFiscalYear_019f826d-d13b-7d70-9bb0-0dcebe5b961c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligationDueInSecondYear_019e980f-36d5-7ec2-bee2-ab5ff8043429" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligationDueInSecondYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ContractualObligation_019e980f-36d5-7e9f-8102-36e2f2022af9" xlink:to="loc_us-gaap_ContractualObligationDueInSecondYear_019e980f-36d5-7ec2-bee2-ab5ff8043429" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.tpvg.com/role/FinancialHighlightsScheduleofWeightedAverageYieldDetails" xlink:type="simple" xlink:href="tpvg-20260630.xsd#FinancialHighlightsScheduleofWeightedAverageYieldDetails"/>
  <link:calculationLink xlink:role="http://www.tpvg.com/role/FinancialHighlightsScheduleofWeightedAverageYieldDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRate_019e980f-36d5-76e0-a247-31218a380b8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentInterestRate"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_InvestmentInterestRateImpactOfPrepayments_019e980f-36d5-7753-a1c7-8d2d6508c855" xlink:href="tpvg-20260630.xsd#tpvg_InvestmentInterestRateImpactOfPrepayments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentInterestRate_019e980f-36d5-76e0-a247-31218a380b8d" xlink:to="loc_tpvg_InvestmentInterestRateImpactOfPrepayments_019e980f-36d5-7753-a1c7-8d2d6508c855" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_InvestmentInterestRateAccretionOfDiscount_019e980f-36d5-77d1-ba58-ebad4d2596a7" xlink:href="tpvg-20260630.xsd#tpvg_InvestmentInterestRateAccretionOfDiscount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentInterestRate_019e980f-36d5-76e0-a247-31218a380b8d" xlink:to="loc_tpvg_InvestmentInterestRateAccretionOfDiscount_019e980f-36d5-77d1-ba58-ebad4d2596a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_InvestmentInterestRateAccretionOfEndOfTermPayments_019e980f-36d5-7f48-b1e1-05e451a033dc" xlink:href="tpvg-20260630.xsd#tpvg_InvestmentInterestRateAccretionOfEndOfTermPayments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentInterestRate_019e980f-36d5-76e0-a247-31218a380b8d" xlink:to="loc_tpvg_InvestmentInterestRateAccretionOfEndOfTermPayments_019e980f-36d5-7f48-b1e1-05e451a033dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tpvg_InvestmentInterestRateCouponIncome_019e980f-36d5-7121-821f-8ea6a5907218" xlink:href="tpvg-20260630.xsd#tpvg_InvestmentInterestRateCouponIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentInterestRate_019e980f-36d5-76e0-a247-31218a380b8d" xlink:to="loc_tpvg_InvestmentInterestRateCouponIncome_019e980f-36d5-7121-821f-8ea6a5907218" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
