Displaying alternate values for a filter

I would like to provide an age filter slider (or some other min/max filter) for one of my visualizations. However the ages in my data set range from days to months to years. Some scenarios would require filter ranges from 18 months to 45 years, for example. I am envisioning some way to convert all ages into age in days and filter on that in the background, however, I would like the filter to display the age in a readable format which means it would need to use the age number plus unit of days, months or years. Is that possible? Does anyone have a suggestion on how I could do that?

My first thought was this is going to be an interesting and complicated JavaScript solution, converting days to months and years.

Then I thought why not have a three level filter? I would make age a three column value. First Column for how many Years, second how many Months (left over months) and third is for Days (left over days).
Now you might want to in addition have some JavaScript that will convert from an input 18 months into 1 year and 6 months. My thought here is have three inputs, Year months and Days that some one could enter the amount of months they are wanting and then that gets converted into the min or max for your filter.
Thinking a little more you might even be able to just use a Decimal for years and then convert 18 months into 1.5 years (use more decimal places to the degree of accuracy you want to days).

Or you could just have the user convert 18 months into 1 year 6 months and use the three filters directly.
I think the best bet would be to ask the user how many months or days and then use JavaScript to convert that to a decimal Year and apply that to the min or max of the filter. might want to have a separate input for min and max.

You can still use a slider maybe but i would consider value if you use year as decimal, this way the users that know 18 months is 1.5 years can just set that directly by typing it in ( I am not sure how easy this would be with a slider).

Looking forward to hearing other suggestions.