Calculate age form Birthday (type:date)

Hello!
As I think it's stupid to store the age itself, I need to know if and
how it's possible to calculate the age from the stored birthday, to
filter searchresults by the calculated age.
[…]
"dob":{
"include_in_all":false,
"format":"dateOptionalTime",
"type":"date"
},
[…]