Where, When, and How Much Should We Invest Through the Green Transition