User blog comment:Deliquescent/Calculate your daemon's attack and defense strength/@comment-122.106.160.214-20140212124957

What you got wrong is that you get a 5% boost to attack if you have 5 cards of the same type (works same way for defence). Also the bonus for type advantage is 15% not 20%.