Predicting future cost through historical cost analysis