summaryrefslogtreecommitdiff
path: root/finance/test_income.py
AgeCommit message (Collapse)Author
2024-09-08Rename income to flowxengineering
Modeling income and expenses separately does not make sense since the only difference is the sign of the amount. Separate definitions would lead to a lot of duplicated code.
2024-09-08Switch to decimal.Decimal for moneyxengineering
Floating point data types are not suitable to represent money since rounding issues will sum up.
2024-09-08finance: Use datetime for Income.integrate()xengineering
Time-based Integration in general is done between two time stamps. For the financial context it makes sense to use Python's datetime.datetime class for this purpose. This commit implements integrating an income between two datetime.datetime time stamps.
2024-09-08finance: Add income.pyxengineering
This is the minimal starting point to model financial income.