**iwsmith**how can i calculate an age based upon a DOB entered

- JotForm Support
**Jim_R**Although we don't have an innate feature like this, you can still achieve the same goal by using the

**Form Calculation Widget**.**Related guide: How-to-Add-a-Widget-to-your-Form**For this, you'd need to use the

**floor()**function to get the base result in case there are decimal places since age is always a whole number.Your general formula would be:

**floor ((TODAY - DOB) / 365.25)**1. Add a

**Date Picker**field where the respondent can enter his DOB2. Add a 2nd

**Date Picker**that will be hidden and will always show Today's date3. Add the

**Form Calculation**widget4. Click the

**...**3-dotted menu to add the**floor()**function5. Then complete the formula as shown above

**iwsmith**Thanks I figured it out ☺

...