SimpleLoan¶
-
class
tmval.growth.
SimpleLoan
(principal: float, term: float, discount_amt: Optional[float] = None, discount_rate: Optional[float] = None)[source]¶ A callable growth pattern for a simple loan, which is a lump sum loan to be paid back with a single payment with interest, and possibly no explicit rate given. A common type of informal loan between two people outside the banking system.
You should supply a discount amount, a discount rate, but not both.
- Parameters
principal (float) – the initial investment.
term (float) – the term of the loan.
discount_amt (float) – the discount amount, defaults to None.
discount_rate (float) – the discount_rate, defaults to None.
- Returns
a
SimpleLoan
object when initialized, the value when called.- Return type
SimpleLoan when initialized, float when called.