You can find the formula for the BIC on page 4 of this paper: Building Bayesian Network Classifiers Using the HPBNET Procedure
Note that it will always be negative for a discrete probability distribution, and the higher the BIC, the better the model.
Hope that helps.
... View more