If you have PSUtilities package installed on your IS, it contains PSUtilities.date:calculateDateDifference service which gives out “dateDifferenceDay”.So put a logic to branch on the dateDifferenceDay value it works as expected.Or else build a custom Javaservice using Java calendar API’s to achieve this.