rewriting business logic for rating - BIT-190 and BIT-191

Signed-off-by: Vladimir Vidinliev <v.vidinliev@gmail.com>
credit rating fixed - BIT-190 and BIT-191

Signed-off-by: Vladimir Vidinliev <v.vidinliev@gmail.com>