The formula to calculate age is:** (Current date – Date of birth) / 1 year**.

Triggre does not know ‘year’, so you have to use **365.25 * 1 day**. This takes account of leap years.

The result is a number with six decimals. You must reduce that to the integer value: 46.653876 must become 46.

There are two ways to do this:

**Store**the outcome**in a data item number field**with zero decimals.

You do this if you want to use Age in calculations or overviews.**Convert**the outcome**to a text**.

You do this if you don’t want to store Age for later use, but want to use it in an email or on a page in a User flow.

## Store the age in a data item as a number

Triggre will round the outcome up or down, depending on the value. But, when calculating age, round up, you always want to round down. For example, 46.7 should become 46, not 47.

**Rounding down a number**

To make Triggre round numbers down, you subtract 0.5 from the value before you store it.

**Explanation**

Let’s use the age of 46 as an example. The smallest possible result of the function is 46.000000, the largest is 46.999999.

When you subtract 0.5, they will become 45.500000 and 46.499999.

When you store these values or any value in between, Triggre will round them to 46.

## Convert the outcome to a text

**Convert**the**number to a text**.**Locate**the**decimal point**, depending on how many digits the calculated age has. Make a decision on Age, the number**Remove**the**decimal point**and**everything to the right**of it. Depending on the age, you have to keep 1, 2 or 3 digits left of the decimal point.

Age in years below 10, which only has 1 digit (0-9.999999)

Age in years between 10 and 99, which has 2 digits (10-99.999999):

Age in years of 100 and above (100-199), which has 3 digits:

Age in years (any other value):

4. **The result** displaying the different calculations made in this article.