> ## 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.

# calculateCanonicalChartDuration()

```ts theme={null}
function calculateCanonicalChartDuration(chart): CanonicalChartDuration;
```

Mirrors StrikeCore `Song.GetLastTick()` and `Song.TickPositionToTime()` at
song speed 1.0. Only regular notes in `Track.Notes` contribute to the last
tick; vocal-note collections and chart events do not.

## Parameters

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

## Returns

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


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