Investing math