NEXUS-7671: Days were squared for idx purge...

Fix and UT

Issue
https://issues.sonatype.org/browse/NEXUS-7671

CI
TBD