PGSI is the largest golf ball recycler in the world, selling millions of golf balls per month. You may not know the name, but chances are the golf balls you buy at the retailers will belong to one of PGSI's brands.
The real-world golf ball compensation system that PGSI applies is extremely difficult to standardize. Each one of the golf courses compensations had to be calculated by hand, using hundreds of hours per month just on that task, calculating balances for their wholesale department. At that moment, it was getting practically impossible to grow the company without a system that somehow could be exact AND flexible enough to convert golf balls into dollars, or percentages, or discounts, or all (or part) of the above. Being this type of compensation system a competitive advantage of their business, changing the way they work was not an option, but finding a way to calculate this, and then support golf courses, and all the infrastructure became a priority. In regards to the flexibility, the system had to be able to support new mathematical functions for any type of new financial product, program or compensation that they could create in the future.
This sounds easy: "convert golf balls to either golf balls, dollars or discounts", but in fact it was a grueling, long, and extremely challenging process. Another software company had dropped the ball, deeming the task as impossible when PGSI hired me. It took me three months JUST to create the math function that could calculate this. It is by far the most complex function I have ever written. My function it's so difficult to follow by hand that the only way to verify if my function was giving the right output is to process results using formulas from 4 excel sheets and then finish them by hand. But it DID work just fine. After the application was completed and they started using it, its use converted tons of paper into a paperless, automated process, that generates the most critical metrics for management and sales; including all kind of revenue, production and sales projections which adjust real-time as real world data gets into the system.
This system, once deemed "impossible" is alive and well. PGSI uses this system to manage the transactions of millions and millions of golf balls, and the system has allowed the company to grow while REDUCING personnel, allowing key players to spend their time helping the company grow instead of just running numbers (eliminating the human error factor was also a big deal). It has also almost completely eliminated the paper trail that they used to have; and allows everyone in the company structure to know their department and personal metrics, from generated commissions to inventory and financial statuses.