sum an array daily gist