-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwheels_in.py
More file actions
42 lines (41 loc) · 1.72 KB
/
Copy pathwheels_in.py
File metadata and controls
42 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
print("Please enter the values in HH:MM:SS")
import time
from datetime import timedelta
time.sleep(3)
wheels_in = input("What time was the cart brought in? ")
time.sleep(3)
pat_vent = input("What time was the patient put on a ventilator? ")
time.sleep(3)
wheels_out = input("What time was the cart taken out? ")
time.sleep(3)
mop_start = input("At what time did the mopping begin? ")
time.sleep(3)
mop_end = input("When was the mopping completed by? ")
time.sleep(3)
room_clean = input("When was the cleaning crew finished? ")
from datetime import datetime
format = '%H:%M:%S'
start_wheels_in = datetime.strptime(wheels_in, format)
end_wheels_out = datetime.strptime(wheels_out, format)
result_1 = end_wheels_out - start_wheels_in
print(f'The total elasped time from wheels in to wheels out was {result_1}')
time.sleep(3)
time_pat_vent = datetime.strptime(pat_vent, format)
result_2 = time_pat_vent - start_wheels_in
print(f'The total elapsed time from wheels in to ventilation was {result_2}')
time.sleep(3)
time_mop_start = datetime.strptime(mop_start, format)
result_3 = time_mop_start - end_wheels_out
print(f'The total elapsed time from wheels out to moping starting was {result_3}')
time.sleep(3)
time_mop_end = datetime.strptime(mop_end, format)
result_4 = time_mop_end - time_mop_start
print(f'The total elapsed time from the start of moping to the end was {result_4}')
time.sleep(3)
time_room_clean = datetime.strptime(room_clean, format)
result_5 = time_room_clean - end_wheels_out
print(f'The total elapsed time to clean the room was {result_5}')
time.sleep(3)
money_funct = result_1.seconds/60
momey_total = round(int(money_funct*65))
print(f'The total cost from wheels in to wheels out was ${momey_total}')