diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2022-12-29 17:12:56 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2022-12-29 17:12:56 -0500 |
| commit | a167f0a5de32d822f20955358315431d2edf6f7e (patch) | |
| tree | cb543c3ea79d8354a276045e8b0cc0eaa3ff6804 /.local/bin/money.py | |
| parent | b8ff930812770cb0a1b76536b34026c991b3cf44 (diff) | |
Added some new scripts
Diffstat (limited to '.local/bin/money.py')
| -rwxr-xr-x | .local/bin/money.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.local/bin/money.py b/.local/bin/money.py new file mode 100755 index 0000000..4a36437 --- /dev/null +++ b/.local/bin/money.py @@ -0,0 +1,22 @@ +#!/usr/local/bin/python3 + +hours = int(input("Enter Hours Worked Per Week: ")) +wage = float(input("Enter Wage: ")) +tax = .13 + +checking = (hours * 4) * wage +checking -= checking * tax +savings = checking / 2 +checking -= savings + +miles = 830 +mpg = float(input("Enter Gas Milage: ")) +gasPrice = float(input("Enter Gas Price: ")) + +gas = (miles / mpg) * gasPrice + +expenses = gas + 10 + +checking -= expenses + +print(f"${checking+savings:,.2f} left over total\n${checking:,.2f} left over for checking each month\n${savings:,.2f} left over for savings each month\nCost of gas: ${gas:,.2f}") |
