It is the investors who determine the market value and they are not affected by company tax. Therefore we use the future receipts before tax and we discount at the investors required rate of return (which is effectively the cost of debt before tax).
This is often asked in the exam which is why I stress it in my free lectures!