ifiecas commited on
Commit
b1a80f7
·
verified ·
1 Parent(s): 4522e90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -176,10 +176,7 @@ with tab1:
176
 
177
  total_income = applicant_income + coapplicant_income
178
 
179
- col1, col2, col3 = st.columns(3)
180
- col1.metric("Total Monthly Income", f"${total_income:,}")
181
- col2.metric("Estimated Monthly Payment", f"${monthly_payment:.2f}")
182
- col3.metric("Loan Term", f"{loan_term//12} years")
183
 
184
  # Calculate monthly payment (simplified calculation)
185
  # Convert loan term to years for calculation
@@ -201,6 +198,11 @@ with tab1:
201
  dti = (monthly_payment / total_income) if total_income > 0 else 0
202
  dti_percent = dti * 100
203
 
 
 
 
 
 
204
  # Show DTI with visual gauge instead of raw number
205
  st.markdown("<h4>Debt-to-Income Assessment</h4>", unsafe_allow_html=True)
206
 
 
176
 
177
  total_income = applicant_income + coapplicant_income
178
 
179
+ # Metrics already shown above with monthly payment
 
 
 
180
 
181
  # Calculate monthly payment (simplified calculation)
182
  # Convert loan term to years for calculation
 
198
  dti = (monthly_payment / total_income) if total_income > 0 else 0
199
  dti_percent = dti * 100
200
 
201
+ col1, col2, col3 = st.columns(3)
202
+ col1.metric("Total Monthly Income", f"${total_income:,}")
203
+ col2.metric("Estimated Monthly Payment", f"${monthly_payment:.2f}")
204
+ col3.metric("Loan Term", f"{loan_term//12} years")
205
+
206
  # Show DTI with visual gauge instead of raw number
207
  st.markdown("<h4>Debt-to-Income Assessment</h4>", unsafe_allow_html=True)
208