Calculate Age in ODK

Hi again,

I use ODK and a I have a field date with the birthdate, and the ideai is a calculate the age, I use this formula:

  • format-date(today(), ‘%Y’) - format-date(${Birthdate}, ‘%Y’)

And it work, but I need to use all the date, I mean calculate the age with the year, the month and the day.

Can someone help me, please.

Use this calculation to get the age - round((today()-${birthdate}) div 365.25,0)

Thanks @ARIF_AZAD_KHAN, it work !!! I really apresiate your help.

on which field does the formula place? Could you give an example? I'm a rookie and I'm about the build.odk