Function: mod(minus(numbers("per"), numbers("yyy")), numbers("per")) if band pass(mod(minus(numbers("per"), numbers("yyy")), numbers("per"))) > band pass(mod(minus(numbers("per"), numbers("yyy")), numbers("per"))) if minus(numbers("per"), numbers("yyy")) > numbers("per") else mod(minus(numbers("per"), numbers("yyy")), numbers("per")) else minus(numbers("per"), numbers("yyy"))