aboutsummaryrefslogtreecommitdiff
path: root/satscalc.py
diff options
context:
space:
mode:
authorSan Jacobs2021-10-02 16:04:45 +0200
committerSan Jacobs2021-10-02 16:04:45 +0200
commitcac1dbd23662b1d8f344ed1867c487f0d1c4de12 (patch)
treec46625e63570e2e645c1b8b6222797a4215cccce /satscalc.py
parent026eeffc7164c2a22872cc531ff0fd1e6d4920cd (diff)
downloadsatscalc-cac1dbd23662b1d8f344ed1867c487f0d1c4de12.tar.gz
satscalc-cac1dbd23662b1d8f344ed1867c487f0d1c4de12.tar.bz2
satscalc-cac1dbd23662b1d8f344ed1867c487f0d1c4de12.zip
Sketches from a bussride
Diffstat (limited to 'satscalc.py')
-rwxr-xr-x[-rw-r--r--]satscalc.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/satscalc.py b/satscalc.py
index d783c1d..878ba76 100644..100755
--- a/satscalc.py
+++ b/satscalc.py
@@ -1,5 +1,20 @@
#!/usr/bin/env python3
+import time
# TODO: Prompt user for base rate, call time, wrap time, whether overtime was warned, and if it was a weekend.
# This should be enough to calculate the pay for a single day's work.
+baserate = int(input("What's your base dayrate (sats)? "))
+hourly_rate = baserate/7.5
+
+print("Hourly rate:", str(hourly_rate))
+
+# TODO: Investigate if storing multiple calltimes and wraptimes will require a custom datastructure
+
+while True:
+ # TODO: Check for valid format
+ calltime = input("Your call time (hhmm): ")
+ if calltime == "done":
+ break
+ wraptime = input("Your wrap time (hhmm): ")
+