Round before modulo