I wrote a little helper that calulates someone’s age based on his/her
date of birth.
diff = Date.today - dob
age = (diff / 365.25).floor
It works fine, but it’s not completely accurate as it just takes the
average days in a year. It should be able to calculate this more
accurately, right? I can’t work it out though…