---
title: "Duration"
description: "Span between two date fields, in hours, days, or other units."
canonical_url: "https://docs.vettero.com/data/tables/duration"
---
# Duration

> Span between two date fields, in hours, days, or other units.

<field-meta group="Time" icon="i-lucide-timer" type="duration" unique="No" value="Computed">



</field-meta>

**Duration** is computed from two [Date Time](https://docs.vettero.com/data/tables/date-time) columns on the same row. You do not type a value.

Name, key, hidden, and permissions are the same for every column — see [Tables](https://docs.vettero.com/data/tables).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        From
      </strong>
      
       / <strong>
        To
      </strong>
    </td>
    
    <td>
      Start and end Date Time columns
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Unit
      </strong>
    </td>
    
    <td>
      Auto, millisecond, second, minute, hour, day, week, month, quarter, or year
    </td>
  </tr>
</tbody>
</table>

After you change Config, use **Recalculate values** on the column menu if existing rows look stale.

## Use case

- Time on a ticket (opened → closed), shift length, or campaign run (start → end).
- Sort the grid for longest-running jobs or shortest cycle time.
- Pick **Unit** (hours, days, …) so the number matches how the team talks about the span.

<field-page-nav>



</field-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
