SFDC: How To

How to calculate Leads/Contacts Age based on the Date field (DoB, Birthday)

Ever woundered what would formula would look like to calculate Persons age based on the date field? - See the magic below. :)

Screen Shot 2018-07-18 at 11.35.20.png
IF(MONTH(TODAY())>MONTH(DOB_API_NAME), YEAR(TODAY())-YEAR(DOB_API_NAME), IF(AND(MONTH(TODAY())=MONTH(DOB_API_NAME), DAY(TODAY())>=DAY(DOB_API_NAME)), YEAR(TODAY())-YEAR(DOB_API_NAME),(YEAR(TODAY())-YEAR(DOB_API_NAME))-1))