Edit your business hours by going to Tools > Business Hours and Leave management > Edit Business Hours > change business hours to 00:00 and 24:00. That way we will include all time that elapses instead of taking business hours into account and excluding the time that passes outside of business hours in the calculations.