Correctly handles partly-available whole-day allocations. Fixes #129.