So I whipped up this simple Excel spreadsheet. You input the quantity of chips you have, the number of players, and the number of rebuys/latecomers you want to allow, and it spits out the number of each color chip that each person should get.
Download: PokerChipsPerPlayerCalculator.xls