diff options
author | San Jacobs | 2021-10-04 08:24:21 +0200 |
---|---|---|
committer | San Jacobs | 2021-10-04 08:24:21 +0200 |
commit | fffad84d2813b6343f0c57aa59c04d5bb866a52f (patch) | |
tree | c8210cc3d19fbf124f195624f500c8665d430ec2 /satscalc.py | |
parent | cd88c1d86c1fbac87e2c089be659520913f3cd61 (diff) | |
download | satscalc-fffad84d2813b6343f0c57aa59c04d5bb866a52f.tar.gz satscalc-fffad84d2813b6343f0c57aa59c04d5bb866a52f.tar.bz2 satscalc-fffad84d2813b6343f0c57aa59c04d5bb866a52f.zip |
Ideas from a bussride
Diffstat (limited to 'satscalc.py')
-rwxr-xr-x | satscalc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/satscalc.py b/satscalc.py index 6e733cc..9be885c 100755 --- a/satscalc.py +++ b/satscalc.py @@ -4,6 +4,12 @@ import datetime # 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. +# These accumulate gradually as you enter hours +normal_hours = 0.0 +ot1_hours = 0.0 +ot2_hours = 0.0 +ot3_hours = 0.0 + baserate = int(input("What's your base dayrate (sats)? ")) hourly_rate = baserate/7.5 @@ -24,6 +30,8 @@ def timeInput(prompt): while True: calltime = timeInput("Your call time (24-hour format, hhmm. Leave blank to continue.): ") + # TODO: Detect turnover problems here, because the previous wraptime is still left over from the previous looparound + # Though you may still need cache the previous two times before you write those hours to the accumulators. We'll see. if calltime == "": break wraptime = timeInput("Your wrap time (24-hour format, hhmm): ") |