```\nfunction getTotalBorrowingFees(DataStore dataStore, address market, address longToken, address shortToken, bool isLong) internal view returns (uint256) {\n    uint256 openInterest = getOpenInterest(dataStore, market, longToken, shortToken, isLong);\n    uint256 cumulativeBorrowingFactor = getCumulativeBorrowingFactor(dataStore, market, isLong);\n    uint256 totalBorrowing = getTotalBorrowing(dataStore, market, isLong);\n    return openInterest * cumulativeBorrowingFactor - totalBorrowing;\n}\n```\n