add credit calculate
fix for master