due to order of operations (BEDMAS) you would need to add all together then do division
agree with — that second line is a sound equation but might be your coding.
Sorry also like — said without capx or screenshot can't give definite answer
Why is it MYArray not MyArray ??