Hi @Calle_Hedberg, @Sameen_Babur,
I’ve found the bug causing the negative number in the rule engine. It is happening with several combination of dates. I’ll be updating the d2 functions affected and added new unit tests to try to satisfy any combination of dates.
I’ll let you know when it is ready.