Skip to content

Commit ab38ed9

Browse files
committed
add docs for various rental for leasing
1 parent 2d5652c commit ab38ed9

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

docs/source/modeling.rst

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,10 +1468,16 @@ Lease with fixed retnal
14681468
14691469
step up type lease which rental will increase by pct after each accrue period
14701470
1471-
Lease with various rental
1471+
Lease with changing rental
14721472
""""""""""""""""""""""""""
14731473
14741474
The ``retnal`` can be increasing/decreasing by a fixed rate or a vector of rate.
1475+
User can supply with an extra params ``stepUp`` to indicate the contractual rental change:
1476+
1477+
* ``flatRate`` -> the rental will increase by a fixed rate after each period
1478+
* ``byRates`` -> the rental will increase by a vector of rates, which means the rental will change by each period according to the vector
1479+
* ``flatAmount`` -> the rental will increase by a fixed amount after each period
1480+
* ``byAmounts`` -> the rental will increase by a vector of amounts, which means the rental will change by each period according to the vector
14751481
14761482
.. code-block:: python
14771483
@@ -1490,11 +1496,34 @@ or user can specify the vector for the rental change
14901496
,{"originTerm": 36
14911497
,"rental":("byDay", 24.0, ["DayOfMonth",25])
14921498
,"originDate": "2023-01-01"
1493-
,"stepUp": ("byRates",[0.05,0.065,0.06,-0.07])
1499+
,"stepUp": ("byRates",1.05,1.065,1.06,-1.07)
14941500
},
14951501
,{"status":"Current" ,"remainTerm":30 ,"currentBalance":150}
14961502
]
14971503
1504+
or user can set rental change by amount or vector of amounts.
1505+
1506+
.. code-block:: python
1507+
1508+
l3 = ["Lease"
1509+
,{"rental": ("byPeriod", 300, "Monthly")
1510+
,"originTerm": 3
1511+
,"originDate": "2022-03-15"
1512+
,"stepUp": ("flatAmount", 50)}
1513+
,{"currentBalance":1
1514+
,"status":"Current"
1515+
,"remainTerm":3}]
1516+
1517+
l3 = ["Lease"
1518+
,{"rental": ("byPeriod", 300, "Monthly")
1519+
,"originTerm": 3
1520+
,"originDate": "2022-03-15"
1521+
,"stepUp": ("byAmounts", 50,100)}
1522+
,{"currentBalance":1
1523+
,"status":"Current"
1524+
,"remainTerm":3}]
1525+
1526+
14981527
14991528
Installment
15001529
^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)