fixed inaccuracy in the calculations
added total credit commission