<?xml version="1.0" encoding="US-ASCII" standalone="no"?>
    <!-- Field: Doc-Info; Name: Generator; Value: GoFiler Complete; Version: 6.6a -->
    <!-- Field: Doc-Info; Name: VendorURI; Value: https://www.novaworks.com -->
    <!-- Field: Doc-Info; Name: Status; Value: 0x00000000 -->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrli="http://www.xbrl.org/2003/instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#Cover" roleURI="http://tmdel.com/role/Cover" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#BalanceSheets" roleURI="http://tmdel.com/role/BalanceSheets" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#BalanceSheetsParenthetical" roleURI="http://tmdel.com/role/BalanceSheetsParenthetical" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#StatementsOfOperationsAndComprehensiveLossIncome" roleURI="http://tmdel.com/role/StatementsOfOperationsAndComprehensiveLossIncome" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#StatementsOfChangesInShareholdersEquity" roleURI="http://tmdel.com/role/StatementsOfChangesInShareholdersEquity" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#StatementsOfCashFlows" roleURI="http://tmdel.com/role/StatementsOfCashFlows" />
    <link:roleRef xlink:type="simple" xlink:href="https://xbrl.sec.gov/cyd/2026/cyd-2026.xsd#CybersecurityRiskManagementAndStrategyDisclosure" roleURI="http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure" />
    <link:roleRef xlink:type="simple" xlink:href="https://xbrl.sec.gov/cyd/2026/cyd-2026.xsd#MaterialCybersecurityIncidentDisclosure" roleURI="http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OrganizationAndPrincipalBusiness" roleURI="http://tmdel.com/role/OrganizationAndPrincipalBusiness" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#GoingConcern" roleURI="http://tmdel.com/role/GoingConcern" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SummaryOfSignificantAccountingPolicies" roleURI="http://tmdel.com/role/SummaryOfSignificantAccountingPolicies" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsReceivableNet" roleURI="http://tmdel.com/role/AccountsReceivableNet" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#NventoriesNet" roleURI="http://tmdel.com/role/NventoriesNet" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OtherReceivablesAndCurrentAssets" roleURI="http://tmdel.com/role/OtherReceivablesAndCurrentAssets" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#PropertyPlantAndEquipmentNet" roleURI="http://tmdel.com/role/PropertyPlantAndEquipmentNet" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#InvestmentsAndValuations" roleURI="http://tmdel.com/role/InvestmentsAndValuations" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#RelatedPartyTransactions" roleURI="http://tmdel.com/role/RelatedPartyTransactions" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsPayableAndAccruedExpenses" roleURI="http://tmdel.com/role/AccountsPayableAndAccruedExpenses" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OtherPayables" roleURI="http://tmdel.com/role/OtherPayables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#LoansAndBorrowings" roleURI="http://tmdel.com/role/LoansAndBorrowings" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#Leases" roleURI="http://tmdel.com/role/Leases" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#Equity" roleURI="http://tmdel.com/role/Equity" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#DisaggregatedRevenueAndGeographicInformation" roleURI="http://tmdel.com/role/DisaggregatedRevenueAndGeographicInformation" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#IncomeTaxes" roleURI="http://tmdel.com/role/IncomeTaxes" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#CommitmentsAndContingencies" roleURI="http://tmdel.com/role/CommitmentsAndContingencies" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ConcentrationRisksAndUncertainties" roleURI="http://tmdel.com/role/ConcentrationRisksAndUncertainties" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SubsequentEvents" roleURI="http://tmdel.com/role/SubsequentEvents" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SummaryOfSignificantAccountingPoliciesPolicies" roleURI="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesPolicies" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OrganizationAndPrincipalBusinessTables" roleURI="http://tmdel.com/role/OrganizationAndPrincipalBusinessTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SummaryOfSignificantAccountingPoliciesTables" roleURI="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsReceivableNetTables" roleURI="http://tmdel.com/role/AccountsReceivableNetTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#NventoriesNetTables" roleURI="http://tmdel.com/role/NventoriesNetTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OtherReceivablesAndCurrentAssetsTables" roleURI="http://tmdel.com/role/OtherReceivablesAndCurrentAssetsTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#PropertyPlantAndEquipmentNetTables" roleURI="http://tmdel.com/role/PropertyPlantAndEquipmentNetTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#InvestmentsAndValuationsTables" roleURI="http://tmdel.com/role/InvestmentsAndValuationsTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#RelatedPartyTransactionsTables" roleURI="http://tmdel.com/role/RelatedPartyTransactionsTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsPayableAndAccruedExpensesTables" roleURI="http://tmdel.com/role/AccountsPayableAndAccruedExpensesTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OtherPayablesTables" roleURI="http://tmdel.com/role/OtherPayablesTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#LoansAndBorrowingsTables" roleURI="http://tmdel.com/role/LoansAndBorrowingsTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#LeasesTables" roleURI="http://tmdel.com/role/LeasesTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#DisaggregatedRevenueAndGeographicInformationTables" roleURI="http://tmdel.com/role/DisaggregatedRevenueAndGeographicInformationTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#IncomeTaxesTables" roleURI="http://tmdel.com/role/IncomeTaxesTables" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OrganizationAndPrincipalBusinessDetailsNarrative" roleURI="http://tmdel.com/role/OrganizationAndPrincipalBusinessDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfSubsidiariesDetails" roleURI="http://tmdel.com/role/ScheduleOfSubsidiariesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#GoingConcernDetailsNarrative" roleURI="http://tmdel.com/role/GoingConcernDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfResidualValueRateAndUsefulLifeOfPropertyPlantAndEquipmentDetails" roleURI="http://tmdel.com/role/ScheduleOfResidualValueRateAndUsefulLifeOfPropertyPlantAndEquipmentDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfGoodwillDetails" roleURI="http://tmdel.com/role/ScheduleOfGoodwillDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfRevenueByReportableSegmentsDetails" roleURI="http://tmdel.com/role/ScheduleOfRevenueByReportableSegmentsDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SummaryOfSignificantAccountingPoliciesDetailsNarrative" roleURI="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfAccountsReceivableNetDetails" roleURI="http://tmdel.com/role/ScheduleOfAccountsReceivableNetDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfAgingAnalysisOfAccountsReceivableDetails" roleURI="http://tmdel.com/role/ScheduleOfAgingAnalysisOfAccountsReceivableDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfMovementOfAllowancesForExpectedCreditLossDetails" roleURI="http://tmdel.com/role/ScheduleOfMovementOfAllowancesForExpectedCreditLossDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsReceivableNetDetailsNarrative" roleURI="http://tmdel.com/role/AccountsReceivableNetDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfInventoriesDetails" roleURI="http://tmdel.com/role/ScheduleOfInventoriesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#NventoriesNetDetailsNarrative" roleURI="http://tmdel.com/role/NventoriesNetDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfOtherReceivablesAndCurrentsAssetsDetails" roleURI="http://tmdel.com/role/ScheduleOfOtherReceivablesAndCurrentsAssetsDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#OtherReceivablesAndCurrentAssetsDetailsNarrative" roleURI="http://tmdel.com/role/OtherReceivablesAndCurrentAssetsDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfPropertyAndEquipmentNetDetails" roleURI="http://tmdel.com/role/ScheduleOfPropertyAndEquipmentNetDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#PropertyPlantAndEquipmentNetDetailsNarrative" roleURI="http://tmdel.com/role/PropertyPlantAndEquipmentNetDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfInvestmentsDetails" roleURI="http://tmdel.com/role/ScheduleOfInvestmentsDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#InvestmentsAndValuationsDetailsNarrative" roleURI="http://tmdel.com/role/InvestmentsAndValuationsDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfNatureAndPurposeOfTransactionAmountsAndOutstandingBalancesForRelatedPartiesDetails" roleURI="http://tmdel.com/role/ScheduleOfNatureAndPurposeOfTransactionAmountsAndOutstandingBalancesForRelatedPartiesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfRelatedPartyBalancesDetails" roleURI="http://tmdel.com/role/ScheduleOfRelatedPartyBalancesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfSalesRevenuesAndPurchasesForRelatedPartiesDetails" roleURI="http://tmdel.com/role/ScheduleOfSalesRevenuesAndPurchasesForRelatedPartiesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#RelatedPartyTransactionsDetailsNarrative" roleURI="http://tmdel.com/role/RelatedPartyTransactionsDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfAccountsPayableAndAccruedExpensesDetails" roleURI="http://tmdel.com/role/ScheduleOfAccountsPayableAndAccruedExpensesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#AccountsPayableAndAccruedExpensesDetailsNarrative" roleURI="http://tmdel.com/role/AccountsPayableAndAccruedExpensesDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfOtherPayablesDetails" roleURI="http://tmdel.com/role/ScheduleOfOtherPayablesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfShort-termBorrowingsDetails" roleURI="http://tmdel.com/role/ScheduleOfShort-termBorrowingsDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfLong-termBorrowingsDetails" roleURI="http://tmdel.com/role/ScheduleOfLong-termBorrowingsDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfLong-termBorrowingsMaturityDetails" roleURI="http://tmdel.com/role/ScheduleOfLong-termBorrowingsMaturityDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#LoansAndBorrowingsDetailsNarrative" roleURI="http://tmdel.com/role/LoansAndBorrowingsDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfOperatingAndFinanceLeasesAssetsAndLiabilitiesDetails" roleURI="http://tmdel.com/role/ScheduleOfOperatingAndFinanceLeasesAssetsAndLiabilitiesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfLeaseCostWeightedAverageRemainingLeaseTermsAndDiscountRatesOfOperatingAndFinanceLeasesDetails" roleURI="http://tmdel.com/role/ScheduleOfLeaseCostWeightedAverageRemainingLeaseTermsAndDiscountRatesOfOperatingAndFinanceLeasesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfFutureMinimumPaymentsUnderOperatingAndFinanceLeasesDetails" roleURI="http://tmdel.com/role/ScheduleOfFutureMinimumPaymentsUnderOperatingAndFinanceLeasesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#EquityDetailsNarrative" roleURI="http://tmdel.com/role/EquityDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfDisaggregatedRevenueByServicesLinesDetails" roleURI="http://tmdel.com/role/ScheduleOfDisaggregatedRevenueByServicesLinesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfGeographicRevenueInformationDetails" roleURI="http://tmdel.com/role/ScheduleOfGeographicRevenueInformationDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfTaxableIncomelossBeforeIncomeTaxesByJurisdictionDetails" roleURI="http://tmdel.com/role/ScheduleOfTaxableIncomelossBeforeIncomeTaxesByJurisdictionDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetails" roleURI="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetailsParenthetical" roleURI="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetailsParenthetical" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfReconciliationsOfStatutoryIncomeTaxRatePercentageAndEffectiveIncomeTaxRatePercentageDetails" roleURI="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRatePercentageAndEffectiveIncomeTaxRatePercentageDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" roleURI="http://tmdel.com/role/ScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ScheduleOfMovementOfCompanysDeferredTaxAssetsAndLiabilitiesDetails" roleURI="http://tmdel.com/role/ScheduleOfMovementOfCompanysDeferredTaxAssetsAndLiabilitiesDetails" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#IncomeTaxesDetailsNarrative" roleURI="http://tmdel.com/role/IncomeTaxesDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#CommitmentsAndContingenciesDetailsNarrative" roleURI="http://tmdel.com/role/CommitmentsAndContingenciesDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#ConcentrationRisksAndUncertaintiesDetailsNarrative" roleURI="http://tmdel.com/role/ConcentrationRisksAndUncertaintiesDetailsNarrative" />
    <link:roleRef xlink:type="simple" xlink:href="tmde-20260630.xsd#SubsequentEventsDetailsNarrative" roleURI="http://tmdel.com/role/SubsequentEventsDetailsNarrative" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/Cover" xlink:title="00000001 - Document - Cover" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/BalanceSheets" xlink:title="00000002 - Statement - Consolidated Balance Sheets">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaapAssetsCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapCashAndCashEquivalentsAtCarryingValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapAccountsReceivableNetCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapInventoryNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherReceivablesNetCurrent" xlink:label="loc_us-gaapOtherReceivablesNetCurrent" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapOtherReceivablesNetCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapOtherAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxesReceivable" xlink:label="loc_us-gaapIncomeTaxesReceivable" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapIncomeTaxesReceivable" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaapAssetsNoncurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsNoncurrent" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments" xlink:label="loc_us-gaapInvestments" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsNoncurrent" xlink:to="loc_us-gaapInvestments" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaapOperatingLeaseRightOfUseAsset" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsNoncurrent" xlink:to="loc_us-gaapOperatingLeaseRightOfUseAsset" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaapDeferredIncomeTaxAssetsNet" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsNoncurrent" xlink:to="loc_us-gaapDeferredIncomeTaxAssetsNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapAssetsCurrent" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapAssetsNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaapLiabilitiesCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_OtherPayablesCurrent" xlink:label="loc_TMDEOtherPayablesCurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_TMDEOtherPayablesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaapShortTermBorrowings" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapShortTermBorrowings" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapOtherLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityCurrent" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapOperatingLeaseLiabilityCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapLongTermDebtCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityCurrent" xlink:label="loc_us-gaapFinanceLeaseLiabilityCurrent" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapFinanceLeaseLiabilityCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaapLiabilitiesNoncurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityNoncurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesNoncurrent" xlink:to="loc_us-gaapOperatingLeaseLiabilityNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaapLongTermDebtNoncurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesNoncurrent" xlink:to="loc_us-gaapLongTermDebtNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent" xlink:label="loc_us-gaapFinanceLeaseLiabilityNoncurrent" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesNoncurrent" xlink:to="loc_us-gaapFinanceLeaseLiabilityNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaapDeferredIncomeTaxLiabilitiesNet" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesNoncurrent" xlink:to="loc_us-gaapDeferredIncomeTaxLiabilitiesNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapLiabilitiesNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapCommonStockValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAdditionalPaidInCapital" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapStockholdersEquity" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaapMinorityInterest" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapMinorityInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapLiabilities" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/BalanceSheetsParenthetical" xlink:title="00000003 - Statement - Consolidated Balance Sheets (Parenthetical)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/StatementsOfOperationsAndComprehensiveLossIncome" xlink:title="00000004 - Statement - Consolidated Statements of Operations and Comprehensive (loss) Income">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaapGrossProfit" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaapRevenueFromContractWithCustomerExcludingAssessedTax" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapGrossProfit" xlink:to="loc_us-gaapRevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaapCostOfRevenue" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapGrossProfit" xlink:to="loc_us-gaapCostOfRevenue" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaapOperatingExpenses" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="loc_us-gaapSellingAndMarketingExpense" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingExpenses" xlink:to="loc_us-gaapSellingAndMarketingExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaapGeneralAndAdministrativeExpense" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingExpenses" xlink:to="loc_us-gaapGeneralAndAdministrativeExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaapDepreciation" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingExpenses" xlink:to="loc_us-gaapDepreciation" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaapOperatingIncomeLoss" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingIncomeLoss" xlink:to="loc_us-gaapGrossProfit" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingIncomeLoss" xlink:to="loc_us-gaapOperatingExpenses" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="loc_us-gaapNonoperatingIncomeExpense" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaapInterestIncomeExpenseNonoperatingNet" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNonoperatingIncomeExpense" xlink:to="loc_us-gaapInterestIncomeExpenseNonoperatingNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaapOtherNonoperatingIncomeExpense" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNonoperatingIncomeExpense" xlink:to="loc_us-gaapOtherNonoperatingIncomeExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt" xlink:label="loc_us-gaapInterestExpenseDebt" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNonoperatingIncomeExpense" xlink:to="loc_us-gaapInterestExpenseDebt" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_ShareOfLossesOfAssociate" xlink:label="loc_TMDEShareOfLossesOfAssociate" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNonoperatingIncomeExpense" xlink:to="loc_TMDEShareOfLossesOfAssociate" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapOperatingIncomeLoss" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapNonoperatingIncomeExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProfitLoss" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProfitLoss" xlink:to="loc_us-gaapIncomeTaxExpenseBenefit" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapProfitLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapNetIncomeLossAttributableToNoncontrollingInterest" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapNetIncomeLossAttributableToNoncontrollingInterest" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapProfitLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaapComprehensiveIncomeNetOfTax" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTax" xlink:to="loc_us-gaapComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTax" xlink:to="loc_us-gaapComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/StatementsOfChangesInShareholdersEquity" xlink:title="00000005 - Statement - Consolidated Statements of Changes in Shareholders&apos; Equity" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/StatementsOfCashFlows" xlink:title="00000006 - Statement - Consolidated Statements of Cash Flows">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapProfitLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaapDepreciation" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapDepreciation" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense" xlink:label="loc_us-gaapOperatingLeaseRightOfUseAssetAmortizationExpense" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapOperatingLeaseRightOfUseAssetAmortizationExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForOtherCreditLosses" xlink:label="loc_us-gaapProvisionForOtherCreditLosses" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapProvisionForOtherCreditLosses" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaapGoodwillImpairmentLoss" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapGoodwillImpairmentLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetImpairmentCharges" xlink:label="loc_us-gaapOtherAssetImpairmentCharges" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapOtherAssetImpairmentCharges" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits" xlink:label="loc_us-gaapDeferredIncomeTaxesAndTaxCredits" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapDeferredIncomeTaxesAndTaxCredits" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDispositionOfAssets1" xlink:label="loc_us-gaapGainLossOnDispositionOfAssets1" />
      <link:calculationArc order="8" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapGainLossOnDispositionOfAssets1" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_ShareOfLossesOfAssociate" xlink:label="loc_TMDEShareOfLossesOfAssociate" />
      <link:calculationArc order="9" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_TMDEShareOfLossesOfAssociate" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsReceivable" />
      <link:calculationArc order="10" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsReceivable" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaapIncreaseDecreaseInInventories" />
      <link:calculationArc order="11" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInInventories" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent" xlink:label="loc_us-gaapIncreaseDecreaseInDueFromRelatedPartiesCurrent" />
      <link:calculationArc order="12" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInDueFromRelatedPartiesCurrent" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsAndOtherReceivables" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsAndOtherReceivables" />
      <link:calculationArc order="13" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsAndOtherReceivables" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities" />
      <link:calculationArc order="14" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherCurrentLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInOtherCurrentLiabilities" />
      <link:calculationArc order="15" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInOtherCurrentLiabilities" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncomeTaxes" xlink:label="loc_us-gaapIncreaseDecreaseInIncomeTaxes" />
      <link:calculationArc order="16" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInIncomeTaxes" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability" xlink:label="loc_us-gaapIncreaseDecreaseInOperatingLeaseLiability" />
      <link:calculationArc order="17" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInOperatingLeaseLiability" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_PaymentsToAcquireInvestment" xlink:label="loc_TMDEPaymentsToAcquireInvestment" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_TMDEPaymentsToAcquireInvestment" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDivestitureOfInterestInSubsidiariesAndAffiliates" xlink:label="loc_us-gaapProceedsFromDivestitureOfInterestInSubsidiariesAndAffiliates" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapProceedsFromDivestitureOfInterestInSubsidiariesAndAffiliates" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaapProceedsFromSaleOfPropertyPlantAndEquipment" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapProceedsFromSaleOfPropertyPlantAndEquipment" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_ProceedsFromRepaymentOfAdvanceToRelatedParties" xlink:label="loc_TMDEProceedsFromRepaymentOfAdvanceToRelatedParties" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_TMDEProceedsFromRepaymentOfAdvanceToRelatedParties" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaapProceedsFromIssuanceInitialPublicOffering" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_us-gaapProceedsFromIssuanceInitialPublicOffering" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromRepaymentsOfDebt" xlink:label="loc_us-gaapProceedsFromRepaymentsOfDebt" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_us-gaapProceedsFromRepaymentsOfDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_RepaymentToFinanceLeasePayables" xlink:label="loc_TMDERepaymentToFinanceLeasePayables" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_TMDERepaymentToFinanceLeasePayables" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromRepaymentsOfRelatedPartyDebt" xlink:label="loc_us-gaapProceedsFromRepaymentsOfRelatedPartyDebt" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_us-gaapProceedsFromRepaymentsOfRelatedPartyDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:type="arc" weight="1" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:type="arc" weight="1" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure" xlink:title="00000012 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure" />
    <link:calculationLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure" xlink:title="00000013 - Disclosure - Material Cybersecurity Incident Disclosure" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OrganizationAndPrincipalBusiness" xlink:title="999014 - Disclosure - Organization and Principal Business" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/GoingConcern" xlink:title="999015 - Disclosure - Going Concern" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SummaryOfSignificantAccountingPolicies" xlink:title="999016 - Disclosure - Summary of Significant Accounting Policies" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsReceivableNet" xlink:title="999017 - Disclosure - Accounts receivable, net" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/NventoriesNet" xlink:title="999018 - Disclosure - nventories, net" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OtherReceivablesAndCurrentAssets" xlink:title="999019 - Disclosure - Other receivables and current assets" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/PropertyPlantAndEquipmentNet" xlink:title="999020 - Disclosure - Property, plant and equipment, net" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/InvestmentsAndValuations" xlink:title="999021 - Disclosure - Investments and valuations" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/RelatedPartyTransactions" xlink:title="999022 - Disclosure - Related party transactions" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsPayableAndAccruedExpenses" xlink:title="999023 - Disclosure - Accounts payable and accrued expenses" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OtherPayables" xlink:title="999024 - Disclosure - Other payables" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/LoansAndBorrowings" xlink:title="999025 - Disclosure - Loans and borrowings" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/Leases" xlink:title="999026 - Disclosure - Leases" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/Equity" xlink:title="999027 - Disclosure - Equity" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/DisaggregatedRevenueAndGeographicInformation" xlink:title="999028 - Disclosure - Disaggregated revenue and geographic information" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/IncomeTaxes" xlink:title="999029 - Disclosure - Income Taxes" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/CommitmentsAndContingencies" xlink:title="999030 - Disclosure - Commitments and contingencies" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ConcentrationRisksAndUncertainties" xlink:title="999031 - Disclosure - Concentration, risks, and uncertainties" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SubsequentEvents" xlink:title="999032 - Disclosure - Subsequent events" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:title="999033 - Disclosure - Summary of Significant Accounting Policies (Policies)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OrganizationAndPrincipalBusinessTables" xlink:title="999034 - Disclosure - Organization and Principal Business (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:title="999035 - Disclosure - Summary of Significant Accounting Policies (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsReceivableNetTables" xlink:title="999036 - Disclosure - Accounts receivable, net (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/NventoriesNetTables" xlink:title="999037 - Disclosure - nventories, net (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OtherReceivablesAndCurrentAssetsTables" xlink:title="999038 - Disclosure - Other receivables and current assets (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/PropertyPlantAndEquipmentNetTables" xlink:title="999039 - Disclosure - Property, plant and equipment, net (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/InvestmentsAndValuationsTables" xlink:title="999040 - Disclosure - Investments and valuations (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/RelatedPartyTransactionsTables" xlink:title="999041 - Disclosure - Related party transactions (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsPayableAndAccruedExpensesTables" xlink:title="999042 - Disclosure - Accounts payable and accrued expenses (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OtherPayablesTables" xlink:title="999043 - Disclosure - Other payables (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/LoansAndBorrowingsTables" xlink:title="999044 - Disclosure - Loans and borrowings (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/LeasesTables" xlink:title="999045 - Disclosure - Leases (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/DisaggregatedRevenueAndGeographicInformationTables" xlink:title="999046 - Disclosure - Disaggregated revenue and geographic information (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/IncomeTaxesTables" xlink:title="999047 - Disclosure - Income Taxes (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OrganizationAndPrincipalBusinessDetailsNarrative" xlink:title="999048 - Disclosure - Organization and Principal Business (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfSubsidiariesDetails" xlink:title="999049 - Disclosure - Schedule of Subsidiaries (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/GoingConcernDetailsNarrative" xlink:title="999050 - Disclosure - Going Concern (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfResidualValueRateAndUsefulLifeOfPropertyPlantAndEquipmentDetails" xlink:title="999051 - Disclosure - Schedule of Residual Value Rate and Useful Life of Property, Plant and Equipment (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfGoodwillDetails" xlink:title="999052 - Disclosure - Schedule of Goodwill (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfRevenueByReportableSegmentsDetails" xlink:title="999053 - Disclosure - Schedule of Revenue By Reportable Segments (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:title="999054 - Disclosure - Summary of Significant Accounting Policies (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfAccountsReceivableNetDetails" xlink:title="999055 - Disclosure - Schedule of accounts receivable, net (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="loc_us-gaapAccountsReceivableGrossCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAccountsReceivableNetCurrent" xlink:to="loc_us-gaapAccountsReceivableGrossCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAccountsReceivableNetCurrent" xlink:to="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfAgingAnalysisOfAccountsReceivableDetails" xlink:title="999056 - Disclosure - Schedule of aging analysis of accounts receivable (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfMovementOfAllowancesForExpectedCreditLossDetails" xlink:title="999057 - Disclosure - Schedule of movement of allowances for expected credit loss (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsReceivableNetDetailsNarrative" xlink:title="999058 - Disclosure - Accounts receivable, net (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfInventoriesDetails" xlink:title="999059 - Disclosure - Schedule of inventories (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/NventoriesNetDetailsNarrative" xlink:title="999060 - Disclosure - nventories, net (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfOtherReceivablesAndCurrentsAssetsDetails" xlink:title="999061 - Disclosure - Schedule of other receivables and currents assets (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsAssetsCurrent" xlink:label="loc_us-gaapDepositsAssetsCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherAssetsCurrent" xlink:to="loc_us-gaapDepositsAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseCurrent" xlink:label="loc_us-gaapPrepaidExpenseCurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherAssetsCurrent" xlink:to="loc_us-gaapPrepaidExpenseCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherReceivablesGrossCurrent" xlink:label="loc_us-gaapOtherReceivablesGrossCurrent" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherAssetsCurrent" xlink:to="loc_us-gaapOtherReceivablesGrossCurrent" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/OtherReceivablesAndCurrentAssetsDetailsNarrative" xlink:title="999062 - Disclosure - Other receivables and current assets (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfPropertyAndEquipmentNetDetails" xlink:title="999063 - Disclosure - Schedule of property and equipment, net (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaapPropertyPlantAndEquipmentGross" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:to="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:to="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/PropertyPlantAndEquipmentNetDetailsNarrative" xlink:title="999064 - Disclosure - Property, plant and equipment, net (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfInvestmentsDetails" xlink:title="999065 - Disclosure - Schedule of investments (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/InvestmentsAndValuationsDetailsNarrative" xlink:title="999066 - Disclosure - Investments and valuations (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfNatureAndPurposeOfTransactionAmountsAndOutstandingBalancesForRelatedPartiesDetails" xlink:title="999067 - Disclosure - Schedule of nature and purpose of transaction amounts and outstanding balances for related parties (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfRelatedPartyBalancesDetails" xlink:title="999068 - Disclosure - Schedule of related party balances (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfSalesRevenuesAndPurchasesForRelatedPartiesDetails" xlink:title="999069 - Disclosure - Schedule of sales revenues and purchases for related parties (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:title="999070 - Disclosure - Related party transactions (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfAccountsPayableAndAccruedExpensesDetails" xlink:title="999071 - Disclosure - Schedule of accounts payable and accrued expenses (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaapAccountsPayableCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent" xlink:to="loc_us-gaapAccountsPayableCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccruedLiabilitiesCurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent" xlink:to="loc_us-gaapAccruedLiabilitiesCurrent" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/AccountsPayableAndAccruedExpensesDetailsNarrative" xlink:title="999072 - Disclosure - Accounts payable and accrued expenses (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfOtherPayablesDetails" xlink:title="999073 - Disclosure - Schedule of other payables (Details)">
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_OtherPayablesCurrent" xlink:label="loc_TMDEOtherPayablesCurrent" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncome" xlink:label="loc_us-gaapDeferredIncome" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_us-gaapDeferredIncome" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_ProfessionalFee" xlink:label="loc_TMDEProfessionalFee" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_TMDEProfessionalFee" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_InsuranceServices" xlink:label="loc_TMDEInsuranceServices" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_TMDEInsuranceServices" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_SecretaryServices" xlink:label="loc_TMDESecretaryServices" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_TMDESecretaryServices" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_VesselRelatedExpenses" xlink:label="loc_TMDEVesselRelatedExpenses" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_TMDEVesselRelatedExpenses" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_OthersPayable" xlink:label="loc_TMDEOthersPayable" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_TMDEOtherPayablesCurrent" xlink:to="loc_TMDEOthersPayable" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfShort-termBorrowingsDetails" xlink:title="999074 - Disclosure - Schedule of short-term borrowings (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfLong-termBorrowingsDetails" xlink:title="999075 - Disclosure - Schedule of long-term borrowings (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_VendorInstallmentLoans" xlink:label="loc_TMDEVendorInstallmentLoans" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_TMDEVendorInstallmentLoans" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_BankLoans" xlink:label="loc_srtBankLoans" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_srtBankLoans" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfLong-termBorrowingsMaturityDetails" xlink:title="999076 - Disclosure - Schedule of long-term borrowings maturity (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_us-gaapLongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/LoansAndBorrowingsDetailsNarrative" xlink:title="999077 - Disclosure - Loans and borrowings (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfOperatingAndFinanceLeasesAssetsAndLiabilitiesDetails" xlink:title="999078 - Disclosure - Schedule of operating and finance leases assets and liabilities (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaapOperatingLeaseLiability" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeaseLiability" xlink:to="loc_us-gaapOperatingLeaseLiabilityCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityNoncurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeaseLiability" xlink:to="loc_us-gaapOperatingLeaseLiabilityNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiability" xlink:label="loc_us-gaapFinanceLeaseLiability" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityCurrent" xlink:label="loc_us-gaapFinanceLeaseLiabilityCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapFinanceLeaseLiability" xlink:to="loc_us-gaapFinanceLeaseLiabilityCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent" xlink:label="loc_us-gaapFinanceLeaseLiabilityNoncurrent" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapFinanceLeaseLiability" xlink:to="loc_us-gaapFinanceLeaseLiabilityNoncurrent" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfLeaseCostWeightedAverageRemainingLeaseTermsAndDiscountRatesOfOperatingAndFinanceLeasesDetails" xlink:title="999079 - Disclosure - Schedule of lease cost, weighted average remaining lease terms and discount rates of operating and finance leases (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfFutureMinimumPaymentsUnderOperatingAndFinanceLeasesDetails" xlink:title="999080 - Disclosure - Schedule of future minimum payments under operating and finance leases (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/EquityDetailsNarrative" xlink:title="999081 - Disclosure - Equity (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfDisaggregatedRevenueByServicesLinesDetails" xlink:title="999082 - Disclosure - Schedule of disaggregated revenue by services lines (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfGeographicRevenueInformationDetails" xlink:title="999083 - Disclosure - Schedule of geographic revenue information (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfTaxableIncomelossBeforeIncomeTaxesByJurisdictionDetails" xlink:title="999084 - Disclosure - Schedule of taxable income/(loss) before income taxes by jurisdiction (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetails" xlink:title="999085 - Disclosure - Schedule of reconciliations of the statutory income tax rate and effective income tax rate (Details)">
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaapIncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_us-gaapIncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaapIncomeTaxReconciliationStateAndLocalIncomeTaxes" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_us-gaapIncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_IncomeTaxReconciliationForeignIncomeTaxes" xlink:label="loc_TMDEIncomeTaxReconciliationForeignIncomeTaxes" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_TMDEIncomeTaxReconciliationForeignIncomeTaxes" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments" xlink:label="loc_us-gaapIncomeTaxReconciliationOtherAdjustments" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_us-gaapIncomeTaxReconciliationOtherAdjustments" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential" xlink:label="loc_us-gaapIncomeTaxReconciliationForeignIncomeTaxRateDifferential" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_us-gaapIncomeTaxReconciliationForeignIncomeTaxRateDifferential" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="tmde-20260630.xsd#TMDE_IncomeTaxRateReconciliationOtherExemptionRebateAndCredit" xlink:label="loc_TMDEIncomeTaxRateReconciliationOtherExemptionRebateAndCredit" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_TMDEIncomeTaxRateReconciliationOtherExemptionRebateAndCredit" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes" xlink:label="loc_us-gaapIncomeTaxReconciliationPriorYearIncomeTaxes" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeTaxExpenseBenefit" xlink:to="loc_us-gaapIncomeTaxReconciliationPriorYearIncomeTaxes" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateDetailsParenthetical" xlink:title="999086 - Disclosure - Schedule of reconciliations of the statutory income tax rate and effective income tax rate (Details) (Parenthetical)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfReconciliationsOfStatutoryIncomeTaxRatePercentageAndEffectiveIncomeTaxRatePercentageDetails" xlink:title="999087 - Disclosure - Schedule of reconciliations of the statutory income tax rate percentage and effective income tax rate percentage (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:title="999088 - Disclosure - Schedule of deferred tax assets and liabilities (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ScheduleOfMovementOfCompanysDeferredTaxAssetsAndLiabilitiesDetails" xlink:title="999089 - Disclosure - Schedule of movement of company&#8217;s deferred tax assets and liabilities (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/IncomeTaxesDetailsNarrative" xlink:title="999090 - Disclosure - Income Taxes (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="999091 - Disclosure - Commitments and contingencies (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/ConcentrationRisksAndUncertaintiesDetailsNarrative" xlink:title="999092 - Disclosure - Concentration, risks, and uncertainties (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://tmdel.com/role/SubsequentEventsDetailsNarrative" xlink:title="999093 - Disclosure - Subsequent events (Details Narrative)" />
</link:linkbase>
