Update: more efficient implementations of CUMULATIVE are included in topic: How do I implement a simple JavaScript function in Snap!, from post #3 onwards.
Update: more efficient implementations of CUMULATIVE are included in topic: How do I implement a simple JavaScript function in Snap!, from post #3 onwards.