Building Prediction Algorithm