This is what I’ve got at the moment, it’s spitting out values which I think look right… can you see any problems with the approach or mistakes in the nodes I’ve cobbled together?
I’ve popped off the execute lines just to make it a bit easier to view.