Use modulo for terseness in wrapping calculation

Signed-off-by: Wincent Colaiuta <win@wincent.com>