# calculateBufferAmountFromState

> **calculateBufferAmountFromState**(`options`): `bigint`

Defined in: [packages/synapse-core/src/utils/calculate-upload-costs.ts:40](https://github.com/FilOzone/synapse-sdk/blob/e66c35ddb1749f0e55bae2e4f430d1449cca89bd/packages/synapse-core/src/utils/calculate-upload-costs.ts#L40)

Calculate the account funding buffer for transaction execution delay.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`CalculateBufferAmountFromStateOptions`](/reference/filoz/synapse-core/utils/type-aliases/calculatebufferamountfromstateoptions/) | Resolved account state and requested buffer duration |

## Returns

`bigint`

Buffer funding in token base units