The mathematics of business