summaryrefslogtreecommitdiff
path: root/finance/income.py
blob: 12d5d4efac43681c21336c0d5549a6515c518db2 (plain)
1
2
3
4
5
6
7
8
9
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