credit_score
Poor
< (key_figures.avg_score*.8)
0
Fair
(? between (key_figures.avg_score*.8) and key_figures.avg_score)
key_figures.avg_granted_sum
Good
> key_figures.avg_score
key_figures.avg_granted_sum*1.5
{
avg_score: mean(credit_history[type = credit_type].score),
avg_granted_sum: mean(credit_history[type = credit_type].granted_sum)
}