Wow that really nice R0J0hound!!
Sorry for my dumb question, but how did you do it that the two instance variables "rate" and "offset" are created with the value <varies>?
I wanted to try your formula in my project but I have to give the instance variables a value, and then it doesnt work. :)