Update app.py
Browse files
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,
|
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 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
st.write("Keep your
|
|
|
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! π₯π½")
|