Chapter 2, Putting It All Together section The line: Ncons=int((StartingCapital+NetProfit)/10000); Should read: Ncons=round((StartingCapital+NetProfit)/10000,0);