Age of Air in Grasshopper

Do you have an algorithm for that?