1 2 def loading(): 3 import time 4 import sys 5 6 7 print("Super Nice is thinking:") 8 9 #animation = ["10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"] 10 animation = ["[■□□□□□□□□□]","[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"] 11 12 for i in range(len(animation)): 13 time.sleep(0.2) 14 sys.stdout.write("\r" + animation[i % len(animation)]) 15 sys.stdout.flush() 16 17 18 def AITAXBOT(): 19 loading() 20 print("\n") 21 print("Welcome to the SNA Tax bot! \nToday we are going to figure out the best way to claim your home office expenses") 22 print("Please when answering don't use $ sign or any other symbols") 23 print("\n") 24 name = input("What is your name? ") 25 print("\n") 26 wfh = input(f"Hi {name}, do you ever work from ? (yes/no) " ).lower() 27 if wfh == "no": 28 print("No claim available") 29 bigboi = input("Do you want to try again? (yes/no) " ).strip().lower() 30 31 if bigboi == "yes": 32 AITAXBOT() 33 else: 34 print("have a good day balla, yours sincerely the SNA team!! ") 35 36 else: 37 wfh_hours = int(input("How many hours per week do you work from home? " )) 38 FR_claim = int(wfh_hours * .52 * 52) 39 print(f"Thanks {name}, lets dig a bit deeper") 40 print("\n") 41 gas = int(input("How much $ per year do you spend on gas? ")) 42 elec = int(input("How much $ per year do you spend on electricity? ")) 43 clean = int(input(f"Just a couple of more q's {name}, How much $ per year do you spend on cleaning? ")) 44 equip = int(input("How much $ did you spend on home office furniture that cost less than $300? ")) 45 equip_dep = int(input("How much $ did you spend on furniture for your home office that cost more than $300? ")) * .1 46 house_size = int(input(f"What is the total living floor area of your house in m2 ? (only the house not the land) ")) 47 office_size = int(input(f"What is the total dedicated home office area in m2 ? ")) 48 acr = office_size / house_size 49 AC_claim = int(( gas + elec + clean ) * acr + equip + equip_dep) 50 print("\n") 51 loading() 52 print("\n") 53 AC_dif = AC_claim - FR_claim 54 FR_dif = FR_claim - AC_claim 55 print(f"You could claim up to ${str(AC_claim)} using the Actual Cost Method") 56 print(f"You could claim up to ${str(FR_claim)} using the Fixed Method") 57 print("\n") 58 if AC_claim < FR_claim: 59 print(f"As you could claim ${str(FR_dif)} more using the Fixed Rate method we recommend reporting ${str(FR_claim)} at item D5 in your tax return") 60 else: 61 print(f"As you could claim ${str(AC_dif)} more using the Actual Cost method we recommend reporting ${str(AC_claim)} at item D5 in your tax return") 62 print("In order to substantiate this claim you will need to keep a diary of hours worked from home for up to 4 weeks") 63 print("\n") 64 QA = input(f"Do you have any more questions {name}? ").lower() 65 print("\n") 66 if QA != "n" and QA != "no" and QA != "nah": 67 print("Please book in at https://www.superniceadvice.com.au/ or call 0436 926 678 to speak to Isaac our tax specialist and have a great day ! ") 68 else: 69 print("Have a great day you legend !!! ") 70 AITAXBOT() 71 72