Allocating Limited Resources for Megaprojects on Deadline