ov-pinka commited on
Commit
245d8a8
·
verified ·
1 Parent(s): 3e30cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -3,7 +3,6 @@ import joblib
3
  import pandas as pd
4
  from scipy.stats import yeojohnson
5
  import inv_transform
6
- import math
7
 
8
 
9
 
@@ -137,8 +136,8 @@ with col2:
137
  income = inv_transform.inv_yeojohnson(income, lambdas['fin_inc_tot_amt'])
138
  reg_fees_inc = inv_transform.inv_yeojohnson(reg_fees_inc, lambdas['fin_inc_tot_amt'])
139
  print(reg_fees_inc)
140
- income = math.ceil(income / 1000) * 1000
141
- reg_fees_inc = math.ceil(reg_fees_inc / 1000) * 1000
142
 
143
  exh_inc = 0
144
  sponsor_inc = 0
@@ -159,19 +158,19 @@ with col2:
159
  else:
160
  sponsor_inc = min(50 * 3900, income - reg_fees_inc - exh_inc)
161
 
162
- sponsor_inc = math.ceil(sponsor_inc / 1000) * 1000
163
- exh_inc = math.ceil(exh_inc / 1000) * 1000
164
  other_inc = income - reg_fees_inc - exh_inc - sponsor_inc
165
  reg_fees_inc = reg_fees_inc + other_inc
166
 
167
 
168
- expenses = math.ceil(income * 0.85 / 1000) * 1000
169
- socl_funcs_exp = math.ceil(expenses * 0.54 / 1000) * 1000
170
- local_arr_exp = math.ceil(expenses * 0.30 / 1000) * 1000
171
- admintn_exp = math.ceil(expenses * 0.07 / 1000) * 1000
172
- promo_exp = math.ceil(expenses * 0.04 / 1000) * 1000
173
  audit_exp = min(expenses*0.006, 6000)
174
- audit_exp = math.ceil(audit_exp / 1000) * 1000
175
  other_exp = expenses - socl_funcs_exp - local_arr_exp - admintn_exp - promo_exp - audit_exp
176
 
177
  # Display results
 
3
  import pandas as pd
4
  from scipy.stats import yeojohnson
5
  import inv_transform
 
6
 
7
 
8
 
 
136
  income = inv_transform.inv_yeojohnson(income, lambdas['fin_inc_tot_amt'])
137
  reg_fees_inc = inv_transform.inv_yeojohnson(reg_fees_inc, lambdas['fin_inc_tot_amt'])
138
  print(reg_fees_inc)
139
+ income = round(income / 1000) * 1000
140
+ reg_fees_inc = round(reg_fees_inc / 1000) * 1000
141
 
142
  exh_inc = 0
143
  sponsor_inc = 0
 
158
  else:
159
  sponsor_inc = min(50 * 3900, income - reg_fees_inc - exh_inc)
160
 
161
+ sponsor_inc = round(sponsor_inc / 1000) * 1000
162
+ exh_inc = round(exh_inc / 1000) * 1000
163
  other_inc = income - reg_fees_inc - exh_inc - sponsor_inc
164
  reg_fees_inc = reg_fees_inc + other_inc
165
 
166
 
167
+ expenses = round(income * 0.85 / 1000) * 1000
168
+ socl_funcs_exp = round(expenses * 0.54 / 1000) * 1000
169
+ local_arr_exp = round(expenses * 0.30 / 1000) * 1000
170
+ admintn_exp = round(expenses * 0.07 / 1000) * 1000
171
+ promo_exp =round(expenses * 0.04 / 1000) * 1000
172
  audit_exp = min(expenses*0.006, 6000)
173
+ audit_exp = round(audit_exp / 1000) * 1000
174
  other_exp = expenses - socl_funcs_exp - local_arr_exp - admintn_exp - promo_exp - audit_exp
175
 
176
  # Display results