Update exec_formla function, mode 2 for average, mode 1 for higher scores, just mode 0 accumulate (sum) by default  -refs 8052