How to calculate the age of a tree