Trying to work out function

Getting NaN errors on my function string