-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cashFlow.py
52 lines (28 loc) · 1.21 KB
/
cashFlow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from enum import Enum
class CashFlow:
def __init__(self):
pass
def __init__(self, year=2022):
pass
#def add():
# pass
#TODO: partial Entry : depends upon it
def iterateSubtotals(subTotals, printFunction=None):
_sum = 0
for item in subTotals:
_sum += item
return _sum
operatingActivitiesNames = ["Earnings", "Depreciation", "Accounts receivable",
"Inventory", "Current Assets ", "Accounts Payable"]
operatingActivities = [248, 239, -108, 244, -18, -107]
investingActivitiesName = ["property, plant, Equipment PPE", "other long-term assets"]
investingActivities = [-205, 20]
financingActivities = [-50, 1, -121, 34, -16]
operatingSubtotal = iterateSubtotals(operatingActivities)
investingSubtotal = iterateSubtotals(investingActivities)
financingSubtotal = iterateSubtotals(financingActivities)
print("operatingSubtotal = ",operatingSubtotal)
print("investingSubtotal = ",investingSubtotal)
print("financingSubtotal = ", financingSubtotal)
total = operatingSubtotal + investingSubtotal + financingSubtotal
print("total = ",total)