--- title: "How to Calculate Contact Age Using a Profile-Based Operation" slug: "calculate-contacts-ages" updated: 2025-09-03T13:40:20Z published: 2025-09-03T13:40:20Z canonical: "docs.mapp.com/calculate-contacts-ages" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # How to Calculate Contact Age Using a Profile-Based Operation ## Goal To calculate the current biological age of your contacts, based on their date of birth. ## Background Information​ An operation is a type of profile-based automation. An operation consists of expression language applied to a profile attribute with the data type string, number or date. Use an operation to extract or modify data stored in an attribute. ## Procedure 1. In ​Administration​, create a new custom user attribute with the name ​CurrentAge​. The data type is ​**Number**​. 2. In ​Automation​, create a new **profile-based automation** with the type ​**Operation**​. The target attribute is ​**CurrentAge**​. The operation has the following expression. ```plaintext ${ecm:age(date.today,user.DateOfBirth)} ``` 3. Click the ​**Save**​ button. 4. Select the profile-based automation and click the ​**Activate**​ button. ⇒ The profile-based automation is now active. 5. Click the ​**Apply Automations**​ button. ⇒ Engage applies the automation to all contacts in the system. This can take a long time. An email notifies you when the automation is finished.