CRM Custom Function vs Client Scrpit

Hi All,

Quick opinion.

We have been attempting to put together a custom function to calculate MWRR in a specific module pulling information from other modules. For those familiar with excel we use XIRR function to do the same there.

Having some difficulty due to the nature of the calculation and the fact you can’t loop in a Zoho CRM custom function.

We haven’t ventured in to the world of client scripts - but I wondered if it might be able to handle the function better than a custom function - assuming we can link it to a button as we don’t want it to run onload etc.