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

Fix and UT
Merge pull request #852 from sonatype/nexus-2.11.x-NEXUS-7671-square-days

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