SAS Interview Question

Was asked to write a function that computes a value, but I don't remember.