SAS interview question

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