You could build anything with Goaddon. Feel free to read through our project ideas. Some could be usefull for your ecommerce company, others could be offered to ecommerce companies by you as a service provider.
By subscribing to the Goexplore addon you get a website that online shops can use to sign up.
By subscribing to the Gofetch addon you enable the merchants to import their orders and products into your database.
If you install the explorer-at-goexplore repository, your website even get a products page that you can add the relevant statistics to.
So by now you have a website where a shop can sign up and enable the recurring import of orders and products into your database.
You would need to integrate this website with an application of your own, one that can manage background processes. That application should recurringly go through the orders and products in your database and calculate return percentages.
You will be faced with the challenge that shops have different approaches to register the returned orders. Some will change the status of the orders, others will manage it externally.
Building an algorithm to calculate return percentages on a product level should not take more than a week, but building features for shops to register returns is more complicated and time consuming.