A corporation can pay out a salary, or a dividend to an owner. To retain the most cash, a combination of salary and dividend should be considered. It depends on a few factors such as corporate tax rate, personal tax rate, tax credits, and so on.