It's a little difficult to tell what the formula you want to implement in code actually is, but since it has the summation sign I think you will likely need a loop of some kind (probably a for loop)....