# Interface: NumericDurationSchema

Defined in: [schema.ts:392](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L392)

A schema representing a return value or object property that is provided as a number, which Coda should interpret as a duration. The given number should be an amount of days (fractions allowed).

## Extends

- `BaseNumberSchema`\<[`Duration`](../../enumerations/ValueHintType/#duration)>

## Properties

### codaType

> **codaType**: [`Duration`](../../enumerations/ValueHintType/#duration)

Defined in: [schema.ts:394](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L394)

Instructs Coda to render this value as a duration.

#### Overrides

`BaseNumberSchema.codaType`

______________________________________________________________________

### description?

> `optional` **description**: `string`

Defined in: [schema.ts:285](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L285)

A explanation of this object schema property shown to the user in the UI.

If your pack has an object schema with many properties, it may be useful to explain the purpose or contents of any property that is not self-evident.

#### Inherited from

`BaseNumberSchema.description`

______________________________________________________________________

### maxUnit?

> `optional` **maxUnit**: [`DurationUnit`](../../enumerations/DurationUnit/)

Defined in: [schema.ts:404](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L404)

The unit to use for rounding the duration when rendering. For example, if using `DurationUnit.Days`, and a value of 273600 is provided (3 days 4 hours) is provided, it will be rendered as "3 days".

______________________________________________________________________

### precision?

> `optional` **precision**: `number`

Defined in: [schema.ts:399](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L399)

A refinement of [DurationSchema.maxUnit](../DurationSchema/#maxunit) to use for rounding the duration when rendering. Currently only `1` is supported, which is the same as omitting a value.

______________________________________________________________________

### type

> **type**: [`Number`](../../enumerations/ValueType/#number)

Defined in: [schema.ts:314](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/schema.ts#L314)

Identifies this schema as relating to a number value.

#### Inherited from

`BaseNumberSchema.type`
