Treasurer Jim Chalmers has admitted next month’s budget and the broader economy are hostage to how quickly the war against Iran is resolved.