building calculate controller