# calculateRunwayAmountFromState

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

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

Calculate extra account funding for the requested post-upload runway.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`CalculateRunwayAmountFromStateOptions`](/reference/filoz/synapse-core/utils/type-aliases/calculaterunwayamountfromstateoptions/) | Projected account rate and requested runway duration |

## Returns

`bigint`

Runway funding in token base units