I am creating a fake banking terminal app for learning purposes that is supposed to let a user enter the initial bank account information. Then is able to subtract (withdraw)from the total(balance) and print out the remaining balance. I have been successful this far. Then it's supposed to allow for additional withdraws until the balance reaches zero. It's also not supposed to let you withdraw more than the balance. The problem is when I withdraw additional amounts, instead of subtracting, it adds random numbers. I have been looking at this for 5 hours now and switching code around and trying different things and no luck. Which is why I'm here. I'm stumped and feel pretty dumb because I'm sure it is simple

```
#!/usr/bin/swift

print("How much money is in your bank account?")

if let beginningBalance = readLine() {
    if let balance = Double(beginningBalance) {
        while balance >= 1 {
            print("How much would you like to withdraw?")
            if let withdrawAmount = readLine() {
                if let withdraw = Double(withdrawAmount) {
                    if withdraw > balance {
                        print("Insufficient funds. Please choose a lower amount.")
                    } else {
                        let total = balance - withdraw
                        print("Balance is \(total)")
                    }
                }
            }
        }

    }
}

```

My output so far...

![my output](https://i.stack.imgur.com/33R0Z.png)