How to calculate age based on Birthdate field

Hello, does anyone know Sugar Logic formula to calculate age based on a Birthdate date field.

Thank you

Parents Reply
  • This is only an approximate figure. E.g. according to the formula someone who was born on March 3rd, 1958 is already 63 years old on February15th, 2021 (two weeks too early). If you want it exactly you have to take the leap years into account.

    But still a damn good formula. :-)

    PS: I think the full formula could be:

    floor(divide(subtract(abs(daysUntil($birthdate)),floor(divide(subtract(year(today()),year($birthdate)),4))),365))

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Children