Capacity Planning Under Uncertainty and the Cost of Capital