summaryrefslogtreecommitdiff
path: root/scripts/money.py
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:49:22 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:49:22 -0500
commitf8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 (patch)
tree0dd9cfa47cfa0bd4d57d7789439cc86afbbdfa85 /scripts/money.py
parent29b1c791f6e319cdab828cee5f491ca1c38e41d1 (diff)
Moved .local/bin to scripts
Diffstat (limited to 'scripts/money.py')
-rwxr-xr-xscripts/money.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/money.py b/scripts/money.py
new file mode 100755
index 0000000..4a36437
--- /dev/null
+++ b/scripts/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}")