So I have created an idle game and it contains a simple bank system. This bank system seems to only work for interest when its positive. I have created a system where if the variable moneyinbank is positive add 10% every 30 seconds, I also added a feature if it's negative subtract 20% from money and add that amount to moneyinbank. The interest gain for a positive balance works. but not for the negative balances interest costs. How do I fix this? Any help is appreciated.