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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:ae0f6631-8069-4a1f-9c9f-d3b062b25e67,g:312ff46b-e9af-4b68-b165-a5ee8fd57be8-->
<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.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="bmrn-20230630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_e8d8db58-928e-4d07-beab-e658a7c8f60b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_0179a1bf-c779-4cc8-b2ef-8017a137aafd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e8d8db58-928e-4d07-beab-e658a7c8f60b" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_0179a1bf-c779-4cc8-b2ef-8017a137aafd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_8a0162c3-07b6-4cfe-86af-eace154df8f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e8d8db58-928e-4d07-beab-e658a7c8f60b" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_8a0162c3-07b6-4cfe-86af-eace154df8f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_cb12ed9f-403d-43c0-afd9-48f75aa7abdd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_AssetsCurrent_cb12ed9f-403d-43c0-afd9-48f75aa7abdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_02189ef7-0e40-479c-951e-c48c6fbb2675" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_02189ef7-0e40-479c-951e-c48c6fbb2675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_b9272e63-5b53-421f-841c-4d1f6f6ce40a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_b9272e63-5b53-421f-841c-4d1f6f6ce40a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_116c970e-9fe6-465e-9fc1-c2709c014344" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_116c970e-9fe6-465e-9fc1-c2709c014344" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_573ca0c3-7185-46d0-97d8-e73176d13a91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_Goodwill_573ca0c3-7185-46d0-97d8-e73176d13a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_2dd1d1ac-4321-4fad-9df4-0e75bf32b6a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_2dd1d1ac-4321-4fad-9df4-0e75bf32b6a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_86d720af-252c-4ea2-b01b-8354f28eee8c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4116b56b-3d9c-4d2a-8007-a249c36d432c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_86d720af-252c-4ea2-b01b-8354f28eee8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_e1ac9161-4b99-42a7-976f-aefddbc629d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_bcdb4ef6-7be2-484a-8039-ef0412553d75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_e1ac9161-4b99-42a7-976f-aefddbc629d9" xlink:to="loc_us-gaap_LiabilitiesCurrent_bcdb4ef6-7be2-484a-8039-ef0412553d75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_5bcc0af4-c242-4e29-96a6-c31e0a61d77f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_e1ac9161-4b99-42a7-976f-aefddbc629d9" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_5bcc0af4-c242-4e29-96a6-c31e0a61d77f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_9629ae1a-5a47-4ec1-ad18-a79b61f84495" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_e1ac9161-4b99-42a7-976f-aefddbc629d9" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_9629ae1a-5a47-4ec1-ad18-a79b61f84495" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a8111e38-81b5-434a-a253-62a17c366b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a8111e38-81b5-434a-a253-62a17c366b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4df331a7-16f0-48f1-b20a-42551f4d0360" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4df331a7-16f0-48f1-b20a-42551f4d0360" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_4ca4470a-6e3d-4641-8a4e-14284641f13a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_4ca4470a-6e3d-4641-8a4e-14284641f13a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_c968e24b-0381-4655-9629-be6b33753381" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:to="loc_us-gaap_InventoryNet_c968e24b-0381-4655-9629-be6b33753381" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_f6822fd3-6db1-4002-997c-a9671aa1c12f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_c8c1173f-f600-4536-a733-69f195e635e4" xlink:to="loc_us-gaap_OtherAssetsCurrent_f6822fd3-6db1-4002-997c-a9671aa1c12f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_353c029f-9474-4f24-bbcb-e5fd3fc2799d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_af0aeaed-fcfd-450c-b666-223ed2b4e3f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_353c029f-9474-4f24-bbcb-e5fd3fc2799d" xlink:to="loc_us-gaap_Liabilities_af0aeaed-fcfd-450c-b666-223ed2b4e3f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_44c5c80d-fd2e-4669-b2e1-79408e0ae038" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_353c029f-9474-4f24-bbcb-e5fd3fc2799d" xlink:to="loc_us-gaap_StockholdersEquity_44c5c80d-fd2e-4669-b2e1-79408e0ae038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_c9c3837b-4753-4102-8ef4-ac24c86ec747" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:to="loc_us-gaap_CommonStockValue_c9c3837b-4753-4102-8ef4-ac24c86ec747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_ed1db546-d886-478f-9385-c0e08722218e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_ed1db546-d886-478f-9385-c0e08722218e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIssuedEmployeeStockTrust_922de925-1427-4ef1-9c08-ac35b9197efd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockIssuedEmployeeStockTrust"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:to="loc_us-gaap_CommonStockIssuedEmployeeStockTrust_922de925-1427-4ef1-9c08-ac35b9197efd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_20c195c4-004f-47dd-8306-1588ef3a792d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_20c195c4-004f-47dd-8306-1588ef3a792d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cc468fcb-a558-414c-81c5-985dd20d580d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_9dd2adb5-d42e-4880-b8a5-aebb62edb77a" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cc468fcb-a558-414c-81c5-985dd20d580d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="bmrn-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c77100fb-0b91-4986-ab1d-bae6d28202aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_1480efb7-86ba-4608-9809-bb4085d155cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c77100fb-0b91-4986-ab1d-bae6d28202aa" xlink:to="loc_us-gaap_OperatingIncomeLoss_1480efb7-86ba-4608-9809-bb4085d155cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_5716e67c-7e3e-40ca-8bbf-449bd13ad87a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c77100fb-0b91-4986-ab1d-bae6d28202aa" xlink:to="loc_us-gaap_InvestmentIncomeInterest_5716e67c-7e3e-40ca-8bbf-449bd13ad87a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_08b865d8-b729-48d9-a521-9f4739ba05e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c77100fb-0b91-4986-ab1d-bae6d28202aa" xlink:to="loc_us-gaap_InterestExpense_08b865d8-b729-48d9-a521-9f4739ba05e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_cf444979-9114-441a-87c9-11ad8fafdbe6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c77100fb-0b91-4986-ab1d-bae6d28202aa" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_cf444979-9114-441a-87c9-11ad8fafdbe6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_afed689d-06f2-4159-b8fc-f0227079563c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:to="loc_us-gaap_CostOfRevenue_afed689d-06f2-4159-b8fc-f0227079563c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_7e0a3c01-e4af-47c0-a309-71ec809f9836" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_7e0a3c01-e4af-47c0-a309-71ec809f9836" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_93d7877b-0117-4727-ab6b-2b96a50a66ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_93d7877b-0117-4727-ab6b-2b96a50a66ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_IntangibleAssetAmortizationAndContingentConsideration_8e82ec50-8283-46bb-8bee-417d29387d9a" xlink:href="bmrn-20230630.xsd#bmrn_IntangibleAssetAmortizationAndContingentConsideration"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:to="loc_bmrn_IntangibleAssetAmortizationAndContingentConsideration_8e82ec50-8283-46bb-8bee-417d29387d9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_4c0b0f16-d35b-44fd-8c41-895bc4ed6f9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_7426c81e-95c7-4616-a18c-786737ff6bf6" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_4c0b0f16-d35b-44fd-8c41-895bc4ed6f9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_8d338b45-d629-40d6-a3f4-d74cf33c1423" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_150e9282-eee5-46da-abc6-b1bd4eda87af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_8d338b45-d629-40d6-a3f4-d74cf33c1423" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_150e9282-eee5-46da-abc6-b1bd4eda87af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_9b11ddc0-67c1-46c7-80b2-d53448c710c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_8d338b45-d629-40d6-a3f4-d74cf33c1423" xlink:to="loc_us-gaap_CostsAndExpenses_9b11ddc0-67c1-46c7-80b2-d53448c710c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_496457b5-0d8c-44f8-ad48-c54fcb3fc4ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_165322d1-ddea-4b3b-880f-e39d94e7790a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_496457b5-0d8c-44f8-ad48-c54fcb3fc4ca" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_165322d1-ddea-4b3b-880f-e39d94e7790a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_ab45294a-4161-4324-aad4-5c7a9f5a13d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_496457b5-0d8c-44f8-ad48-c54fcb3fc4ca" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_ab45294a-4161-4324-aad4-5c7a9f5a13d8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="bmrn-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1de097c1-00c5-4fa4-9520-26c3d442b2c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_50516e51-b75d-4253-a033-92448933613f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1de097c1-00c5-4fa4-9520-26c3d442b2c5" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_50516e51-b75d-4253-a033-92448933613f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d5401d06-e636-4e6e-9c82-3b0e8d599175" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1de097c1-00c5-4fa4-9520-26c3d442b2c5" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d5401d06-e636-4e6e-9c82-3b0e8d599175" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_1d7f881e-b761-431a-9ff9-83b1f378beb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1de097c1-00c5-4fa4-9520-26c3d442b2c5" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_1d7f881e-b761-431a-9ff9-83b1f378beb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_48385b49-97e5-45e7-baf0-6f743799e63d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1de097c1-00c5-4fa4-9520-26c3d442b2c5" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_48385b49-97e5-45e7-baf0-6f743799e63d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3add67eb-de98-4811-affa-220cb5325f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_NetIncomeLoss_3add67eb-de98-4811-affa-220cb5325f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_c4da57b7-a93c-4bc2-880b-0045a5c4383e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_c4da57b7-a93c-4bc2-880b-0045a5c4383e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_e922c71a-bea3-42f9-a4a6-454458bb1fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_e922c71a-bea3-42f9-a4a6-454458bb1fcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_09113c4e-09f5-4fd3-81fe-5b6753b05f68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_09113c4e-09f5-4fd3-81fe-5b6753b05f68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_1cb30a0b-eb21-4aa9-a022-0e3e8979a7d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_ShareBasedCompensation_1cb30a0b-eb21-4aa9-a022-0e3e8979a7d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_526be8a2-b6fd-48b7-a488-9a10e833021c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_526be8a2-b6fd-48b7-a488-9a10e833021c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_e3338d3d-47df-4b0a-8755-b8d4b802522b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_e3338d3d-47df-4b0a-8755-b8d4b802522b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_ad0bb7e7-dce9-4e97-a679-3ec038ea9c0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_ad0bb7e7-dce9-4e97-a679-3ec038ea9c0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_34977aef-0683-4a5c-843d-a583f7ad8711" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_34977aef-0683-4a5c-843d-a583f7ad8711" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_29f9ccf6-7bdc-44f6-9247-40e7820fc98b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_29f9ccf6-7bdc-44f6-9247-40e7820fc98b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_7fe915cc-5c10-40a8-85b0-2c9e1dd01a25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_7fe915cc-5c10-40a8-85b0-2c9e1dd01a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_2e04747d-2f49-4aac-a2bb-cb89efcf1fe5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_2e04747d-2f49-4aac-a2bb-cb89efcf1fe5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_d8ea9660-1771-48dd-887a-c62a628c1584" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_d8ea9660-1771-48dd-887a-c62a628c1584" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_cfbe8625-4cf9-4c99-b7a4-ba3cf896f97e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_cfbe8625-4cf9-4c99-b7a4-ba3cf896f97e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_b1fc22b2-2853-49db-ab85-c9c9ee562a02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_b1fc22b2-2853-49db-ab85-c9c9ee562a02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfOtherAssets_08965099-688f-4870-a5bd-11e96af53bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfOtherAssets"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_GainLossOnSaleOfOtherAssets_08965099-688f-4870-a5bd-11e96af53bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_0199a0b4-9904-49f0-90d8-de437d24e928" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_db5dd3b8-28cf-4352-a520-0e97015aacee" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_0199a0b4-9904-49f0-90d8-de437d24e928" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa57fe1f-0d4b-44c2-8dc9-4b5c78f92309" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_40551586-cb43-4eaf-9988-b67b507ba76a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa57fe1f-0d4b-44c2-8dc9-4b5c78f92309" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_40551586-cb43-4eaf-9988-b67b507ba76a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fa134150-bffc-431d-9afc-58e3bbefd4b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa57fe1f-0d4b-44c2-8dc9-4b5c78f92309" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fa134150-bffc-431d-9afc-58e3bbefd4b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_4bbcbd4f-d1af-4b37-81f8-bbfd5d8a3211" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa57fe1f-0d4b-44c2-8dc9-4b5c78f92309" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_4bbcbd4f-d1af-4b37-81f8-bbfd5d8a3211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c3e16f12-566d-46ec-a822-a3bfcd29a8cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa57fe1f-0d4b-44c2-8dc9-4b5c78f92309" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c3e16f12-566d-46ec-a822-a3bfcd29a8cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_d0227c27-36b9-4a00-8001-6c35985b4637" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_d0227c27-36b9-4a00-8001-6c35985b4637" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_c1cf4533-86a4-4902-a117-575166acd44c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_c1cf4533-86a4-4902-a117-575166acd44c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_6a606672-1919-48aa-babd-a9c9dea05758" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_6a606672-1919-48aa-babd-a9c9dea05758" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ProceedsFromSaleOfNonfinancialAssets_e28052b2-bcb9-4756-835a-9aa2a063d6c6" xlink:href="bmrn-20230630.xsd#bmrn_ProceedsFromSaleOfNonfinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:to="loc_bmrn_ProceedsFromSaleOfNonfinancialAssets_e28052b2-bcb9-4756-835a-9aa2a063d6c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_2933a6b3-7baf-4faf-a3cd-b11e8069b1d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireIntangibleAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63c16b02-ff8e-4938-963d-f57dd0900899" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_2933a6b3-7baf-4faf-a3cd-b11e8069b1d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_265a9857-176b-476f-80e0-5ba0ef9351d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_f83531ae-c914-4946-a72f-e93f2b1a3450" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_265a9857-176b-476f-80e0-5ba0ef9351d1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_f83531ae-c914-4946-a72f-e93f2b1a3450" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a127cf3b-43e5-4079-9c0c-6108ec0bd605" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_265a9857-176b-476f-80e0-5ba0ef9351d1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a127cf3b-43e5-4079-9c0c-6108ec0bd605" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_fb87aa51-87c1-49ee-bdf0-5b890dcd0260" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_265a9857-176b-476f-80e0-5ba0ef9351d1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_fb87aa51-87c1-49ee-bdf0-5b890dcd0260" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a0522101-1d4a-4b96-a420-bc7d48d3460e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_abf54929-ae71-4a02-9822-11fc9143df51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a0522101-1d4a-4b96-a420-bc7d48d3460e" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_abf54929-ae71-4a02-9822-11fc9143df51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_26e85b58-6c9f-44a3-953a-08c5421988ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a0522101-1d4a-4b96-a420-bc7d48d3460e" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_26e85b58-6c9f-44a3-953a-08c5421988ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_f992793f-25b7-4eae-84c8-5343337beb6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_a0522101-1d4a-4b96-a420-bc7d48d3460e" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_f992793f-25b7-4eae-84c8-5343337beb6c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_32977dd9-b880-4582-956c-6e9c36a6af86" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_e22323b1-ad57-4451-9b6c-7706864df72e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_32977dd9-b880-4582-956c-6e9c36a6af86" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_e22323b1-ad57-4451-9b6c-7706864df72e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5ab1cce4-d15d-4c34-85a2-a2c8be355cab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_32977dd9-b880-4582-956c-6e9c36a6af86" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5ab1cce4-d15d-4c34-85a2-a2c8be355cab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fe7f2439-0ce0-40cc-9b85-2d35547193fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_989122ef-8ae3-43ae-b378-5b8301fc5e2f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fe7f2439-0ce0-40cc-9b85-2d35547193fb" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_989122ef-8ae3-43ae-b378-5b8301fc5e2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1e908415-5175-48a8-ac8e-619ca5e93001" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fe7f2439-0ce0-40cc-9b85-2d35547193fb" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1e908415-5175-48a8-ac8e-619ca5e93001" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationReserveCurrent_7aae2cc9-04aa-4f95-93fa-c2d82a001503" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LitigationReserveCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_LitigationReserveCurrent_7aae2cc9-04aa-4f95-93fa-c2d82a001503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OperatingAndFinanceLeaseLiabilityCurrent_9fde4d55-3024-4f9a-af1d-83c54bf7c37e" xlink:href="bmrn-20230630.xsd#bmrn_OperatingAndFinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_bmrn_OperatingAndFinanceLeaseLiabilityCurrent_9fde4d55-3024-4f9a-af1d-83c54bf7c37e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedRoyaltiesCurrent_e2a41f5a-c17e-4d78-a30c-f8abdd3f1ce3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedRoyaltiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_AccruedRoyaltiesCurrent_e2a41f5a-c17e-4d78-a30c-f8abdd3f1ce3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_AccruedGovernmentAndOtherRebates_8d44abee-cbc4-41d3-83c8-33dd882edd75" xlink:href="bmrn-20230630.xsd#bmrn_AccruedGovernmentAndOtherRebates"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_bmrn_AccruedGovernmentAndOtherRebates_8d44abee-cbc4-41d3-83c8-33dd882edd75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent_1c2d2e14-6c65-4827-99fc-2e3f5328c3a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent_1c2d2e14-6c65-4827-99fc-2e3f5328c3a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_0df97cf8-f90b-4d94-93d6-36f0ca86ebbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_0df97cf8-f90b-4d94-93d6-36f0ca86ebbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccountsPayableAndAccruedLiabilities_88b6cd4d-bcaf-47aa-9394-2111b7c2b0da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_OtherAccountsPayableAndAccruedLiabilities_88b6cd4d-bcaf-47aa-9394-2111b7c2b0da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b55464dc-dc05-49f6-ae5c-f4f4a30f9d0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b55464dc-dc05-49f6-ae5c-f4f4a30f9d0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_0e6e1eb2-6705-4869-95dd-e196be560021" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_d7e28e92-a93e-4fef-b78f-f5c9fe7056c8" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_0e6e1eb2-6705-4869-95dd-e196be560021" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_2129b75f-e883-47ef-8f28-d7ab953d6fc5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_d6541c43-ece5-49fc-85f6-7c3bf81b7800" xlink:href="bmrn-20230630.xsd#bmrn_OtherAssetsCurrentFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2129b75f-e883-47ef-8f28-d7ab953d6fc5" xlink:to="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_d6541c43-ece5-49fc-85f6-7c3bf81b7800" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_dbf4137d-d690-4fd1-89a5-1a5134f0b25d" xlink:href="bmrn-20230630.xsd#bmrn_OtherAssetsNoncurrentFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2129b75f-e883-47ef-8f28-d7ab953d6fc5" xlink:to="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_dbf4137d-d690-4fd1-89a5-1a5134f0b25d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_059ce09b-f29c-4f57-960e-e149089b58cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_2a0e3d3e-24f4-4a55-b484-011b0fec4dc7" xlink:href="bmrn-20230630.xsd#bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_059ce09b-f29c-4f57-960e-e149089b58cc" xlink:to="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_2a0e3d3e-24f4-4a55-b484-011b0fec4dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_4f937943-bc00-4ab6-9de2-53777240f302" xlink:href="bmrn-20230630.xsd#bmrn_OtherLiabilitiesCurrentFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_059ce09b-f29c-4f57-960e-e149089b58cc" xlink:to="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_4f937943-bc00-4ab6-9de2-53777240f302" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DEBTScheduleofConvertibleDebtDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_53f5af32-08a1-43d4-87fe-f8eb2a364ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_d0ee0fbc-68bc-45f5-9fb9-6c6ca7702f8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebt_53f5af32-08a1-43d4-87fe-f8eb2a364ed9" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_d0ee0fbc-68bc-45f5-9fb9-6c6ca7702f8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_b5043dd0-6f9f-4bd7-981a-f69e7945bac8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_b953ef6d-700f-4126-98e6-095d21c3c40f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ConvertibleDebtNoncurrent_b5043dd0-6f9f-4bd7-981a-f69e7945bac8" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_b953ef6d-700f-4126-98e6-095d21c3c40f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_0362cbe0-9dae-4772-a760-bc3ecf2e465f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ConvertibleDebtNoncurrent_b5043dd0-6f9f-4bd7-981a-f69e7945bac8" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_0362cbe0-9dae-4772-a760-bc3ecf2e465f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DEBTScheduleofInterestExpenseonConvertibleDebtDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_28a9c8fb-dae4-4f9c-9298-fd47be405215" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_fe76af53-4380-45c2-a946-9515e0490761" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_InterestExpense_28a9c8fb-dae4-4f9c-9298-fd47be405215" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_fe76af53-4380-45c2-a946-9515e0490761" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_72956199-e595-4f0f-bf18-37249511d7f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_InterestExpense_28a9c8fb-dae4-4f9c-9298-fd47be405215" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_72956199-e595-4f0f-bf18-37249511d7f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_791cb150-c9f5-40e1-bedf-11fa058b29fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_28a9c8fb-dae4-4f9c-9298-fd47be405215" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_791cb150-c9f5-40e1-bedf-11fa058b29fa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_43c3d72a-119f-414a-a378-7b737e14e7b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_14619e2a-21dc-4737-8bd1-baea1043c8bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_43c3d72a-119f-414a-a378-7b737e14e7b3" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_14619e2a-21dc-4737-8bd1-baea1043c8bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_b07d1c6e-cd71-4623-8ab0-7b5447079a66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_43c3d72a-119f-414a-a378-7b737e14e7b3" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_b07d1c6e-cd71-4623-8ab0-7b5447079a66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_4fbe355e-c2b3-4f3e-9636-c264468c301d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_43c3d72a-119f-414a-a378-7b737e14e7b3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_4fbe355e-c2b3-4f3e-9636-c264468c301d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_3de0864d-cd4b-4bdb-82fe-59f53ee447d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_9014c5a1-97c6-4a58-b1ef-5ea0767990b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_3de0864d-cd4b-4bdb-82fe-59f53ee447d4" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_9014c5a1-97c6-4a58-b1ef-5ea0767990b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_56cc0305-1ea7-4cc3-a114-8f35a4729da7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_3de0864d-cd4b-4bdb-82fe-59f53ee447d4" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_56cc0305-1ea7-4cc3-a114-8f35a4729da7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
