> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# calculateCanonicalTrackDuration()

```ts theme={null}
function calculateCanonicalTrackDuration(semantics): TrackDuration;
```

Calculates the same duration directly from trusted canonical BTrack semantics.

## Parameters

| Parameter | Type |
| - | - |
| `semantics` | [`CanonicalTrackSemantics`](https://chart-spec.enchor.us/scan-chart/api/competitive/interfaces/CanonicalTrackSemantics) |

## Returns

[`TrackDuration`](https://chart-spec.enchor.us/scan-chart/api/competitive/interfaces/TrackDuration)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.