diff options
-rwxr-xr-x[-rw-r--r--] | satscalc.py | 15 |
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): ") + |