I don't understand the last test. If I do the calculation myself I have 57 and not 56... :/
0.5*4 = 2 (10+10+10+30)/100 = 0.6 120 - 60 - (2+0.6) = 57.4 =>57