I am trying to put logic in XSL to get the value.
1+ mod(DateDifference ,number)
DateDifference
can be positive or a negative number and formula should work in all scenarios whether date diff is +ve
, -ve
or 0
.
This formula in XSL is not working for below values
DateDifference= -33
Number=8
The result, I am getting in MS Excel with the same formula is 7
but the XSL result is -1
.
Can anyone suggest me the correct way or syntax for using the number for all possible DateDifference
values?