I've found personally it's better to use AI to build a deterministic script for calculations like that. (anything that manipulates data should be a script not an AI).

It was just one off task and I already had agent doing categorising with the same data so I just asked it. Otherwise I agree.