The problem is that it's not clear where that "Funds to transfer" money is coming from. Every time you buy stocks, your total is increasing which changes the target values.
Instead, you should have a "cash" row that shows your available un-invested money and has a target of 0%. Then, when you buy a stock you reduce your cash amount accordingly. This way, the total and the target values remain constant.