1
0

4 Коміти cd8fb77aca ... 0a0e635c6f

Автор SHA1 Опис Дата
  Eren Yilmaz 0a0e635c6f Allow creating users in specific organizations 1 рік тому
  Eren Yilmaz d69f2f4605 Record times 1 рік тому
  Eren Yilmaz 2c3f6b826e Add organizations to users 1 рік тому
  Eren Yilmaz eedd1a290f Fix excel export and optimization tests 1 рік тому

+ 0 - 0
Code/README.md


BIN
time_recoder/time_recorded_tables/work_time_eren.xlsx


+ 10 - 0
tool_lib/price_estimator.py

@@ -0,0 +1,10 @@
+from math import log
+
+
+def price(num_operators: int, base_price=15, discount_per_doubling=0.9):
+    return base_price * num_operators * discount_per_doubling ** log(num_operators, 2)
+
+
+if __name__ == '__main__':
+    for i in [1, 2, 3, 5, 10, 20, 40, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000]:
+        print(f'{i} operators: {price(i):,.2f} €')