Js String Split Array Into Equal Sum Total Formula