yellowbean / Hastructure

ABS/MBS cashflow engine written in Haskell, with API to Python and C/Java (on the way)
https://deal-bench.xyz
Other
16 stars 4 forks source link

Adjustable Fee ? #110

Open yellowbean opened 11 months ago

yellowbean commented 11 months ago

a Fee may increase by % after N years ?


When to happen ?

How much of the changes ?

it depends on the fee type

How to model ?

it should be part of deal component instead of assumption.

yellowbean commented 9 months ago

annotate via datePattern is not an option as it the frequence adjustment should be part of feeType not a new feeType

A possible solution is: creating a new compound feeType like

data feeType = PctFee 
             |  Pre feeType  --->   a feeType only come into exist when `pre` evaluated to be true