Dynamic Allocation Of Temporal Resources Under Uncertainty