summaryrefslogtreecommitdiff
path: root/finance/income.py
diff options
context:
space:
mode:
Diffstat (limited to 'finance/income.py')
-rw-r--r--finance/income.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/finance/income.py b/finance/income.py
new file mode 100644
index 0000000..12d5d4e
--- /dev/null
+++ b/finance/income.py
@@ -0,0 +1,10 @@
+import dataclasses
+
+
+@dataclasses.dataclass(kw_only=True, frozen=True)
+class Income:
+
+ amount: float
+
+ def integrate(self, delta_t: int) -> float:
+ return delta_t * self.amount