fix(pagination): simplify math