really need help calculating a monthly checking account fee
I need a code that Input includes an account balance and the number of times the account was overdrawn. The output is the fee, which is 1 percent of the balance minus 5 dollars for each time the account was overdrawn. Use three modules. The main program declares global variables and calls housekeeping, detail, and end-of-job modules. The housekeeping module prompts for and accepts a balances. The detail module prompts for and accepts the number of overdrafts, computes the fee, and displays the result. this is the best i could come up with but im not getting right input everytime i input a number a = int(input("Balance \n" )) * (0.1) b = int(input("Over Draft ")) if (b>0): print(a - 5) else: print (a) print("Thanks for using this program")