# calculateAccountDebt

> **calculateAccountDebt**(`params`): `bigint`

Defined in: [packages/synapse-core/src/pay/account-debt.ts:17](https://github.com/FilOzone/synapse-sdk/blob/78c167418083a17417ccf3994e37407987d6251b/packages/synapse-core/src/pay/account-debt.ts#L17)

Compute account debt — the unsettled lockup amount exceeding available funds.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `params` | [`ParamsType`](/reference/filoz/synapse-core/pay/namespaces/calculateaccountdebt/type-aliases/paramstype/) | Raw account fields + current epoch |

## Returns

`bigint`

The debt amount (0n if account is healthy)