Fix minor incorrect computation of tickend

The computation of tickend for the first sample
had an implicit (done+1)*tickinterval in it.
But the loop did not.

The result was a 0 value for the second sample
which we definitely don't want.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>