11/12 of a day is 22 hours, i.e. 2 hours less than a day. If you add 11/12 to your "days" variable and then cut off the decimals, you'll end up with the correct value
Examples:
Code:
days=2.03
days+11/12 = 2.9466667
Math.floor(days+11/12) = 2 (correct)
days=2.084
days+11/12 = 3,0006667
Math.floor(days+11/12) = 3 (correct, because .084 days is more than 2 hours)