I tried to do this. Now i can add 10,25 or 100 levels and get te cost of all levels.
* On function 'Function1' → Number
* Parameter 'StartLevel' (Number)
* Parameter 'EndLevel' (Number)
| Local number Total = 0
----+ System: For "" from StartLevel to EndLevel
-----> System: Add floor(5×1.07^LoopIndex) to Total
----+ (no conditions)
-----> Functions: Set return value Total
+ Touch: On touched Buy
----+ System: Money-Functions.Function1(Level+1,Level+Multiplier) => 0
-----> System: Subtract Functions.Function1(Level+1,Level+Multiplier) from Money
-----> System: Add Multiplier to Level
-----> TextPixel: Set text to Money