Mathematical model predicts what is leached out of building