Use history in building calculation