Published on : June 01, 2020

What is Loan Tenure?
Loan Tenure is the tenure for which the loan will be set up.

Service Used: sublan_eligibility.loan_tenure

The Service does the following activities.

  • Return the loan tenure
  • The Increments in which the tenure can be given (This is used by UX offer screen)

Loan tenure Settings (loan_tenure)


min
outer_min
max
outer_max

The range in which the loan tenure has to be. Outside the boundaries results in an error.
For minimum:
maximum of (min,outer_min)
For Maximum:
minimum of (max, outer_max)

Integer Values
fixed The fixed tenure for this loan. Cannot be changed
Integer Values
default The tenure is set as a default of it is not present
Integer Values
period The period in which the tenure is defined
Only support Months
Days calculated as months
Months
incThe Increments in which the tenure can be given
Integer
requiredThis attribute is used for validation at sublan levelVarchar
skipTo skip this attribute we would add skip in productVarchar

Logic: Calculation of loan tenure

Product Settings 
----------------- 
Product Settings is Compulsory (error if no settings) 
 
Skip 
-------- 
Allowed 
 
Required 
----------- 
Required - Defaults to Calc.  
Can be over written by rtsettings 
Can be overwritten by Product Settings 
 
Max  
----------------------------------- 
Max is compulsory 
Minimum of max,outer_max 
 
Min 
-------------------------------------- 
Min is compulsory 
Max of 0,min,outer_min 
 
Calc Loan Tenure 
----------------------- 
In the Order below: 
loan.loan_details.loan_tenure 
settings.fixed 
settings.default 
Calculated Max 
 
Check 
------------------ 
Compare that interest rate is between range
 
Build the tenures using inc 
Output:  
"loan_tenure" => [
"debug" => [
"settings" => [
"inc" => int(3)
"period" => string(6) "months"
"outer_min" => int(6)
"outer_max" => int(36)
]
]
"skip" => string(2) "no"
"input_loan_tenure" => string(2) "36"
"required" => string(3) "yes"
"max" => int(36)
"min" => int(6)
"loan_tenure" => int(36)
"inc" => int(3)
"loan_tenures_first" => int(6)
"loan_tenures_last" => int(36)
"loan_tenures" => [
6 => int(6)
9 => int(9)
12 => int(12)
15 => int(15)
18 => int(18)
21 => int(21)
24 => int(24)
27 => int(27)
30 => int(30)
33 => int(33)
36 => int(36)
]
"status" => string(7) "success"
"message" => string(22) "loan tenure calculated"
]

Visual Output