Few remarks about this level :
I get a success without changing the code. Bonus were not ok, but level was successful.
Even after changing the code, correctly I think, as requested at least, I was not able to get a better result, to achieve the first bonus.
In the Results, the shorter the time, the better the results. I think it should be the opposite. The rank for gold looks correct.
The level is fun, but maybe the balance needs improvement. The first goal is too easy if you have armor, and even if you summon soldier, they did not help much as the enemies are so powerful after 30s.