# getConditionDeadlineStates

> Derives the status of each deadline of a condition, on today: fulfilled (or fulfilledlate when the fulfillment's local date is after the deadline) when one of its fulfillments has that duedate; otherwise upcoming until the deadline and overdue after it. For an undated condition, a fulfillment withou

> **getConditionDeadlineStates**(`well`, `permit`, `condition`, `options?`): [`ConditionDeadlineState`](/utils/api/type-aliases/ConditionDeadlineState)[]

Derives the status of each deadline of a condition, on `today`:
`fulfilled` (or `fulfilled_late` when the fulfillment's local date is after
the deadline) when one of its `fulfillments` has that `due_date`; otherwise
`upcoming` until the deadline and `overdue` after it. For an undated
condition, a fulfillment without `due_date` yields a single `fulfilled`
entry.

## Parameters

### well

`Well`

### permit

`Permit`

### condition

`PermitCondition`

### options?

[`ConditionDeadlineOptions`](/utils/api/type-aliases/ConditionDeadlineOptions) = `{}`

## Returns

[`ConditionDeadlineState`](/utils/api/type-aliases/ConditionDeadlineState)[]
