Please suggest
how can we calculate years given by days using record types
Discussion posts and replies are publicly visible
That function returns an interval as described in the documentation. Turning that into an integer returns the number of days. Divide that by 365 and you should get a not very reliable age.
Days / 365.25,
It will be off by 1 day in most cases because of the year 2000, which wasn't a leap year. Don't know how to factor that in, but this is honestly already more accurate than you need.