Can you tell me in English what do the notations in the formula mean?
You may also have a look at my script in this post to copy the formula down.