calculate credibility rule-based