Convert days to years, months and days

Does anyone know how to convert a certain number of days into years, months and days? For example: 457 days corresponds to 1 year, 3 months and 2 days. But I need it to be safe, noting that it has months of 30, 31 and has the particularities of February and leap years.

I think throwing away the problem and waiting for a solution is not the best way to learn.
try to have at least an idea, use a little logic.
We are here to help you, not to do your work.

Thanks. But the idea is not to ask someone to do my work. This is a mutual aid community. Your comment is unnecessary and rude.

To begin with, if you do not enter a start date dd/mm/yyyy it will not be possible to calculate how many leap years there were.
If the days must be subtracted or added to the date.

Thank you my friend