Account for negative modulo in percept calculation