(1+0.22)1/4-1
Using the Mathematica Time Value function:
FindRoot[TimeValue[100, x, 4] == 122, {x, 1}]
Which is the same calculation.
Perhaps your problem is this: I made 22% on an investment over 4 years. What is the equivalent annual rate? If so, your expression in Wolfram Language is:
In[1]:= (1 + 0.22)^0.25 - 1 Out[1]= 0.0509691
I don't understand the example/calculation. However there are examples here for discount rate solving: http://reference.wolfram.com/language/ref/TimeValue.html