Would anyone care to share a way to get the value for the number of days a security is in your portfolio ?

Thanks.