I think if you're using a framework version from 2018, and that framework released a new version in 2019, that framework would add 1 libyear. However, if there hadn't been a new release of that framework, you'd be up-to-date and hence it contributes 0 to your libyear score.
Repeat that calculation for your other dependencies, relative to their latest release date.
Repeat that calculation for your other dependencies, relative to their latest release date.