=MIN(12500; SI(A2<=50000; A2*0,04; SI(A2<=200000; 50000*0,04 + (A2-50000)*0,03; SI(A2<=350000; 50000*0,04 + 150000*0,03 + (A2-200000)*0,01; SI(A2<=500000; 50000*0,04 + 150000*0,03 + 150000*0,01 + (A2-350000)*0,005; 50000*0,04 + 150000*0,03 + 150000*0,01 + 150000*0,005 + (A2-500000)*0,0025)))))