I have found a way which is intuitive and easy to write in native bubble. It handles leap years perfectly as far as I can tell.
- subtract DOB year from this year
- if current date in DOB’s year is before DOB, subtract 1, otherwise subtract 0

More details:
And it works in the back end too.
6 Likes