# calculateHoleFillSegmentVolume

> Calculates the net annular volume of a single hole-fill segment, accounting for the space taken by casings and screens that overlap it.

> **calculateHoleFillSegmentVolume**(`fill`, `profile`): `number`

Calculates the net annular volume of a single hole-fill segment, accounting
for the space taken by casings and screens that overlap it.

The gross cylindrical volume of the fill annulus is computed first. Any
well-case or well-screen section that overlaps the fill interval is then
subtracted (clipped to the overlapping length) to yield the true net volume.

The result is in **cubic meters (m³)** — diameters are converted from mm
internally via [calculateCylindricVolume](/utils/api/functions/calculateCylindricVolume).

## Parameters

### fill

`HoleFill`

The hole-fill segment to compute the volume of.

### profile

`Well`

The well providing the well_case/well_screen sections to
  subtract.

## Returns

`number`

Net volume (m³) of `fill`, possibly negative if its diameter is
  smaller than an overlapping casing/screen.
