Spaces:
Runtime error
Runtime error
porcentaje
Browse files
app.py
CHANGED
@@ -46,15 +46,17 @@ def main() -> None:
|
|
46 |
table = get_table(sueldo_bruto, TRAMOS)
|
47 |
col1.dataframe(table)
|
48 |
total = table["Impuesto"].sum()
|
49 |
-
col1.subheader(f"Total Impuesto: ${total}")
|
50 |
|
51 |
col2.subheader("Tabla de Impuestos Reforma")
|
52 |
table = get_table(sueldo_bruto_reforma, TRAMOS_REFORMA)
|
53 |
col2.dataframe(table)
|
54 |
total_reforma = table["Impuesto"].sum()
|
55 |
-
col2.subheader(f"Total Impuesto con Reforma: ${total_reforma} (
|
56 |
|
57 |
|
|
|
|
|
58 |
if __name__ == "__main__":
|
59 |
st.set_page_config(
|
60 |
"Calculador de impuestos",
|
|
|
46 |
table = get_table(sueldo_bruto, TRAMOS)
|
47 |
col1.dataframe(table)
|
48 |
total = table["Impuesto"].sum()
|
49 |
+
col1.subheader(f"Total Impuesto: ${total} ({100*(total/sueldo_bruto):.2f}\%)")
|
50 |
|
51 |
col2.subheader("Tabla de Impuestos Reforma")
|
52 |
table = get_table(sueldo_bruto_reforma, TRAMOS_REFORMA)
|
53 |
col2.dataframe(table)
|
54 |
total_reforma = table["Impuesto"].sum()
|
55 |
+
col2.subheader(f"Total Impuesto con Reforma: ${total_reforma} ({(total_reforma/sueldo_bruto):.2f}\%)")
|
56 |
|
57 |
|
58 |
+
# st.plotly_chart()
|
59 |
+
|
60 |
if __name__ == "__main__":
|
61 |
st.set_page_config(
|
62 |
"Calculador de impuestos",
|