jonathanjordan21 commited on
Commit
2ca37d9
1 Parent(s): 4be52fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -880,7 +880,8 @@ def respond_pkb(
880
  bbnkb = 0
881
 
882
  if scores[1] > w_avg:
883
- d = datetime.now().date().year - vehicle["tg_akhir_pkb"].values[0].year
 
884
  if d < 1:
885
  d = 1
886
  # swdkllj = 35000
 
880
  bbnkb = 0
881
 
882
  if scores[1] > w_avg:
883
+ d = datetime.now().date() - vehicle["tg_akhir_pkb"].values[0]
884
+ d = d.days // 365
885
  if d < 1:
886
  d = 1
887
  # swdkllj = 35000