# PunctualityTolerance

Industry: Transport

The caller's punctuality tolerance, as ISO 8601 durations of exact time (a day is 24 hours; years, months and weeks are refused; neither may be negative).

```ts
import type { PunctualityTolerance } from "@northguild/gmt";
```

## Members

| Member | Type | Description |
| --- | --- | --- |
| `late` | `string` | How far after the plan an arrival may be before it is late: a deviation of this much or more is late. `"PT0S"` makes every arrival at or after the plan late. |
| `early?` | `string` | How far before the plan an arrival may be before it is early: a deviation of this much or more ahead of the plan is early. |

## Definition

```ts
type PunctualityTolerance = {
  /**
   * How far after the plan an arrival may be before it is late: a deviation of this much or more
   * is late. `"PT0S"` makes every arrival at or after the plan late.
   */
  late: string;
  /**
   * How far before the plan an arrival may be before it is early: a deviation of this much or
   * more ahead of the plan is early.
   *
   * @defaultValue None. An early arrival is on time.
   */
  early?: string;
};
```

## Used by

- [`classifyPunctuality`](/gmt/reference/transport/compare/classifyPunctuality/)
- [`punctualityRate`](/gmt/reference/transport/calculate/punctualityRate/)

## Source

[types/transport-timestamps.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/transport-timestamps.ts)
