`ingestion.rs`: Logic duplicated with `UsageDetails` in `packages/shared/src/server/ingestion/types.ts` and `getUsageUnits` in `worker/src/services/IngestionService/index.ts`. Keep logic in sync.
