Provide an open-source solution to calculating Royalties for publisher sales.  The model is generic enough to be adaptable to other products and industries.