> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Returning Customer Other COGS: User-Defined COGS for Repeat Buyers

> Track user-defined cost of goods sold for returning customer orders. Capture packaging, duties, and other COGS not in Shopify product variants.

<Tip>
  User-defined COGS from cost entries for returning customer orders—captures costs beyond Shopify product variants.
</Tip>

## Formula

<Info>
  **Returning Customer Other COGS** = **SUM** ( Order Cost Entries ) **WHERE** category = COGS **AND** [customer\_type = returning\_customer](/data-dictionary/measures-and-dimensions#customer-type)
</Info>

### Formula Components

| Metric                                                                                             | Definition                                                 |
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| **Order Cost Entries**                                                                             | User-defined cost entries with COGS category               |
| [**customer\_type = returning\_customer**](/data-dictionary/measures-and-dimensions#customer-type) | Filters to orders from customers who have purchased before |

| Metadata        |                                            |
| --------------- | ------------------------------------------ |
| **Type**        | Currency                                   |
| **Data Source** | [Upstack Costs](/dashboard/settings/costs) |
| **Aggregation** | Sum                                        |

***

## Example

Your returning customer orders incurred **\$2,650** in other COGS this month:

| Cost Entry          | RC Total    |
| ------------------- | ----------- |
| Packaging materials | \$1,230     |
| Import duties       | \$820       |
| Quality inspection  | \$600       |
| **RC Other COGS**   | **\$2,650** |

***

## How It Works

Returning Customer Other COGS sums all cost entries categorized as COGS for repeat buyer orders. These are costs you've configured in Upstack—like packaging, duties, or inspection fees—that aren't stored on Shopify product variants. Combined with RC COGS, this gives you complete product cost visibility for retention analysis.

***

## When to Use

| Scenario                 | Action                                            |
| ------------------------ | ------------------------------------------------- |
| Complete RC cost picture | Add to RC COGS for total product costs            |
| Cost entry validation    | Verify user-defined COGS are allocating correctly |
| Segment comparison       | Compare to NC Other COGS for differences          |
| LTV accuracy             | Include in repeat-order margin calculations       |

***

## Related Metrics

| Metric                                                                            | Relationship                     |
| --------------------------------------------------------------------------------- | -------------------------------- |
| [Other COGS](/reference/metrics/orders/cogs/other-cogs)                           | All customers combined           |
| [New Customer Other COGS](/reference/metrics/orders/cogs/new-customer-other-cogs) | First-time buyer comparison      |
| [Returning Customer COGS](/reference/metrics/orders/cogs/returning-customer-cogs) | Product-level costs from Shopify |
| [Total COGS](/reference/metrics/orders/cogs/total-cogs)                           | COGS + Other COGS combined       |

[See all COGS metrics →](/reference/metrics/orders/cogs)
