I think you need to adjust the result manually maybe just with + 1 if you want to display a different logic. Further it looked that you don't use dates instead of timestamps and you may change this, too - for example with: date(floor(YourTimestamp)).