---
title: "How to enable duration calculations in Gravity Forms with GravityMath"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravitymath/time-calculations-in-gravity-forms/"
---

GravityMath allows durations to be calculated. You can calculate average time, fastest time, and slowest time.

In order to calculate time, a Single Line Text field must be modified to use an Input Mask set to either "Duration (HH:MM:SS)" or "Duration (MM:SS)".

Here's how to set the appropriate Input Mask:

## Click the "Single Line Text" button to add a text field

![Single Line Text button in Gravity Forms interface for adding a text field](https://www.gravitykit.com/wp-content/uploads/2021/02/click-the-single-line-text-button-to-add-a-text-field.png)

## Click the new field to access the field settings

![Image from Article: How to enable duration calculations in Gravity Forms with GravityMath](https://www.gravitykit.com/wp-content/uploads/2021/02/click-the-new-field-to-access-the-field-settings.png)

## Check the box titled Input Mask

![Checkbox for enabling Input Mask feature in Gravity Forms](https://www.gravitykit.com/wp-content/uploads/2021/02/check-the-box-titled-input-mask.png)

## Choose a Duration format from the "Select a Mask" dropdown

![Dropdown menu in Gravity Forms showing duration options MM:SS and HH:MM:SS](https://www.gravitykit.com/wp-content/uploads/2021/02/choose-a-duration-format-from-the-select-a-mask-dropdown.png)
*"Duration (MM:SS)" will allow users to enter values in minute/second format*
"Duration (HH:MM:SS)" will allow users to enter values in hour/minute/second format.

## Save the form

![Buttons for Update, Cancel, and Move to Trash in a form interface](https://www.gravitykit.com/wp-content/uploads/2021/02/save-the-form.png)