Round up the inputunit length and do not add one.

For cases where the input length is exactly divisible by the
inputunit size, the +1 is incorrect.