One such model has been already mentioned in this article: the COCOMO II equation that links effort (cost) to personnel, environment, quality, size, and process.
We know that part of the equation should be to think ahead (providing a solid design and architecture), but quality is usually compromised because of budget and deadline concerns.