# calculateHoleFillVolume

> Calculates the net annular volume occupied by a specific hole-fill type, accounting for the space taken by casings and screens inside the fill zone.

> **calculateHoleFillVolume**(`type`, `profile`): `number`

Calculates the net annular volume occupied by a specific hole-fill type,
accounting for the space taken by casings and screens inside the fill zone.

Sums [calculateHoleFillSegmentVolume](/utils/api/functions/calculateHoleFillSegmentVolume) over every hole-fill segment of
the requested type.

## Parameters

### type

`"gravel_pack"` \| `"seal"`

Fill category to sum: `'gravel_pack'` or `'seal'`.

### profile

`Well`

The well whose fill volumes are being calculated.

## Returns

`number`

Total net volume (m³) of all fill segments matching `type`.
