Apple was granted a four-year extension to retain an incentive deal worth up to $845 million in North Carolina. Here are the details.