# calculateAccountDebt

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

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