1 calculate array total