SONAR-4700 Fix new measures calculation when comparing from x days