you need to factor in soft cost like DA, CC, subdivision cost, contribution and authority fees and charges
around 100k.. you will need to fund above out of your own pocket.
600k for duplex may be cutting it to fine for actual building cost.. i allow another 50-80k on top of that.