30,000,000,000 / 1024 / 1024 / 1024 = 27.93GB

Drive space is always measured in 1000 bytes per kilobyte by the makers, and 1024 by the OS. Formatting will probably take a few megs tops in overhead for the partition table and filesystem. No drive will eat gigs of space for formatting though.