awacke1 commited on
Commit
8f96a66
β€’
1 Parent(s): 9f601be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -7
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
 
3
  st.title("The Great American Taxpayer Fleecing Calculator")
4
 
@@ -10,9 +11,17 @@ income = st.slider("Household Income", 0, 500000, 100000, 1000)
10
 
11
  state = st.selectbox("State", ["MN", "CA", "NY", "TX", "FL", "etc"])
12
 
13
- kids = st.slider("Number of Kids", 0, 10, 0)
14
 
15
- st.write(f"For a {filing_status} household in {state} with income of ${income:,} and {kids} kids...")
 
 
 
 
 
 
 
 
16
 
17
  if filing_status == "Married Filing Jointly":
18
  fleece_factor = 1.5
@@ -30,9 +39,22 @@ fleece_amount = income * (0.25 + (0.02 * fleece_factor))
30
  st.write(f"You're getting fleeced of approximately ${fleece_amount:,.0f} this year! πŸ’ΈπŸ˜±")
31
 
32
  st.write("But don't forget these non-monetary benefits of paying taxes:")
33
- st.write("- Paved roads with only a few potholes")
34
- st.write("- Schools where kids learn important skills like TikTok dances")
35
- st.write("- Reliable power grid... except when squirrels attack transformers")
36
- st.write("- Politicians' salaries for their tireless 20 hour work weeks")
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
- st.write("Keep your chin up! This too shall pass. And remember, if the tax burden gets too high, there's always sunny tax havens like the Cayman Islands! 🏝️😎")
 
1
  import streamlit as st
2
+ import random
3
 
4
  st.title("The Great American Taxpayer Fleecing Calculator")
5
 
 
11
 
12
  state = st.selectbox("State", ["MN", "CA", "NY", "TX", "FL", "etc"])
13
 
14
+ kids = st.slider("Number of Grown Kids", 0, 10, 2)
15
 
16
+ st.write(f"For a {filing_status} household in {state} with income of ${income:,} and {kids} grown kids...")
17
+
18
+ complaints = {
19
+ "MN": ["Minnesota's tax burden is making it hard to afford my home!", "I'm considering moving to a state with lower taxes."],
20
+ "CA": ["California's high taxes are driving me crazy!", "I can barely afford to live here anymore."],
21
+ "NY": ["New York's taxes are out of control!", "I'm working harder than ever, but taking home less."],
22
+ "TX": ["Even though Texas has no income tax, property taxes are through the roof!", "I'm afraid I might lose my home if this keeps up."],
23
+ "FL": ["Florida's taxes may be lower, but the cost of living is still high!", "I'm not sure how much longer I can afford to retire here."]
24
+ }
25
 
26
  if filing_status == "Married Filing Jointly":
27
  fleece_factor = 1.5
 
39
  st.write(f"You're getting fleeced of approximately ${fleece_amount:,.0f} this year! πŸ’ΈπŸ˜±")
40
 
41
  st.write("But don't forget these non-monetary benefits of paying taxes:")
42
+ benefits = [
43
+ "Paved roads with only a few potholes",
44
+ "Schools where kids learn important skills like TikTok dances",
45
+ "Reliable power grid... except when squirrels attack transformers",
46
+ "Politicians' salaries for their tireless 20 hour work weeks",
47
+ "Funding for important studies like 'The mating habits of the North American dung beetle'",
48
+ "Subsidies for companies that definitely need more private jets"
49
+ ]
50
+ st.write("- " + random.choice(benefits))
51
+
52
+ if state in complaints:
53
+ st.write(f"Here's what some fellow {state} taxpayers have to say:")
54
+ st.write(f"- {random.choice(complaints[state])}")
55
+
56
+ st.write("It's time for a change! We can't let oppressive taxation drive hardworking married couples out of their homes. πŸ˜οΈπŸ’”")
57
+
58
+ st.write("Together, we can rise up and demand a fairer tax system that doesn't punish success or tear families apart. πŸ’ͺπŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦")
59
 
60
+ st.write("Keep your spirits high and remember, if all else fails, there's always the option to start a revolution! πŸ”₯πŸ—½")