DavidSB commited on
Commit
0109644
·
1 Parent(s): 52ec269

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -15,7 +15,8 @@ ultimo_cub = df_cub.columns[-1]
15
 
16
  def calcular_valor_imovel(area=100, data_refer_str=None, data_const_str=None, tipo_cub="R 1-N (Res. Unifamiliar)",
17
  data_cub_str=None, percentual_cub=1, BDI=22.5, BDI_tipo ="Arbitrado", fator_local = 1, just_fator_local = "-", tipologia="APARTAMENTOS",
18
- estado="B - entre novo e regular", VR=0.2, valor_terreno=0, est_ter="Grau III de fundamentação no métodocomparativo ou no involutivo", fc=1, fc_just="Arbitrado"):
 
19
  # Carregar dados dos arquivos Excel
20
  df_cub = pd.read_excel('TABELAS.xlsx', sheet_name='CUB')
21
  df_vida = pd.read_excel('TABELAS.xlsx', sheet_name='VUTIL')
@@ -101,7 +102,7 @@ def calcular_valor_imovel(area=100, data_refer_str=None, data_const_str=None, ti
101
  Valor CUB: {round(valor_cub, 2)}
102
  Fator local: {fator_local}
103
  Fator local (justificativa): {just_fator_local}
104
- Valor sem/ depreciação: {Valor_sem_deprec}
105
  """
106
 
107
  deprec = f"""
@@ -113,17 +114,17 @@ def calcular_valor_imovel(area=100, data_refer_str=None, data_const_str=None, ti
113
  Coeficiente de Depreciação: {coef_HH}
114
  Valor residual (0, 0.1 ou 0.2): {VR}
115
  Kd: {kd}
116
- Valor final const: {Valor_com_deprec}
117
  """
118
 
119
  valor_ter = f"""
120
  Valor do Terreno: {valor_terreno}
121
- Estimativa do terreno (forma de cálculo): {est_ter}
122
  """
123
 
124
  valor_final = f"""
125
  FC (Fator de Comercialização): {fc}
126
- FC (forma de cálculo): {fc_just}
127
  Valor do Imóvel: {valor_imovel}
128
  """
129
 
 
15
 
16
  def calcular_valor_imovel(area=100, data_refer_str=None, data_const_str=None, tipo_cub="R 1-N (Res. Unifamiliar)",
17
  data_cub_str=None, percentual_cub=1, BDI=22.5, BDI_tipo ="Arbitrado", fator_local = 1, just_fator_local = "-", tipologia="APARTAMENTOS",
18
+ estado="B - entre novo e regular", VR=0.0, valor_terreno=0, est_ter="Grau III de fundamentação no métodocomparativo ou no involutivo",
19
+ fc=1, fc_just="Arbitrado"):
20
  # Carregar dados dos arquivos Excel
21
  df_cub = pd.read_excel('TABELAS.xlsx', sheet_name='CUB')
22
  df_vida = pd.read_excel('TABELAS.xlsx', sheet_name='VUTIL')
 
102
  Valor CUB: {round(valor_cub, 2)}
103
  Fator local: {fator_local}
104
  Fator local (justificativa): {just_fator_local}
105
+ Valor sem depreciação: {Valor_sem_deprec}
106
  """
107
 
108
  deprec = f"""
 
114
  Coeficiente de Depreciação: {coef_HH}
115
  Valor residual (0, 0.1 ou 0.2): {VR}
116
  Kd: {kd}
117
+ Valor final construção: {Valor_com_deprec}
118
  """
119
 
120
  valor_ter = f"""
121
  Valor do Terreno: {valor_terreno}
122
+ Observação sobre o grau de fundamentação: {est_ter}
123
  """
124
 
125
  valor_final = f"""
126
  FC (Fator de Comercialização): {fc}
127
+ Observação sobre o FC: {fc_just}
128
  Valor do Imóvel: {valor_imovel}
129
  """
130