Function: tan(minus(numbers("per") if minus(numbers('ryy'), numbers("per")) > numbers("per") else numbers('ryy') if minus(numbers('ryy'), numbers("per")) > numbers("per") else numbers('ryy'), numbers("per") if numbers('ryy') > numbers("per") else minus(numbers('ryy'), numbers("per"))))