# calculateAccountDebt

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

Defined in: [packages/synapse-core/src/pay/account-debt.ts:17](https://github.com/FilOzone/synapse-sdk/blob/dedad9df2a2b92b4d129e93660ac1208ef65c2c1/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)