From cac1dbd23662b1d8f344ed1867c487f0d1c4de12 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Sat, 2 Oct 2021 16:04:45 +0200 Subject: Sketches from a bussride --- satscalc.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) mode change 100644 => 100755 satscalc.py diff --git a/satscalc.py b/satscalc.py old mode 100644 new mode 100755 index d783c1d..878ba76 --- 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): ") + -- cgit v1.2.1