Calculate Date After compare and check Leadtime

Hi Everybody,


When I calculation Date form Order Date with Expected Receipt as a result type Integer.

CountDate:="Expected Receipt Date"-PurchHeader."Order Date";

I want check CountDate > ItemVendor."Lead Time Calculation"

But I can not convert Integer data type to DateFormula for comparison.

Please help me, give me a solution.

Thanks so much

Best Regards,