We use the ms library for parsing durations that has different logic from the UI, which converts durations from the server into human readable form.
ms('10 years') returns 315576000000, which is just over 10 years.
Looking at the source code for that package a year is defined as 365.25 days (a Julian year which takes into account leap years).
