# calculate

> **calculate**(`data`): `PieceLink`

Defined in: [packages/synapse-core/src/piece.ts:170](https://github.com/FilOzone/synapse-sdk/blob/2c515fb6328c4f7a68ed82653d96ab11299e177d/packages/synapse-core/src/piece.ts#L170)

Calculate the PieceCID (Piece Commitment) for a given data blob

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) | The binary data to calculate the PieceCID for |

## Returns

`PieceLink`

The calculated PieceCID CID