# calculateBufferAmountFromState

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

Defined in: [packages/synapse-core/src/utils/calculate-upload-costs.ts:39](https://github.com/FilOzone/synapse-sdk/blob/0c729dad461472f017e4d84f8e6ac16e6afbe7c0/packages/synapse-core/src/utils/calculate-upload-costs.ts#L39)

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