Answer:
Up to $4 million
Explanation:
The $3 million spent in developing the product is the sunk cost which is irrelevant in the analysis of how much to spend on the project.
Since it is expected that the project would generate $4 million, up to $4 million is the amount the amount that should be spent on the completion of the project.
I hope my answer helps you