blob: 878ba76cf321828027cc319c46a287e7a6ff5d73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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): ")
|