Noting is weird here. In your formula, you divided by (s+1) where in the doc 86, the division is by s and then adding 1 to it. The correct formula would be:
floor((h + 2*p - d *(k-1) -1 )/s + 1) = floor((8 + 2 - 0 -1)/1 + 1) = 10