Published on : July 10, 2020

What is broken period interest
Calcultion of the Broken Period Interest

Service Used: sublan_eligibility.broken_period_interest

Keys used in this section are

collect
Shoul collect broken period interest or notVarchar

Logic: Calculation of broken period interest

collect
-----------
collect - Defaults to no.

end_date
------------
end_date = accural_date
check the accrual date is present in the loan, if not return error

start_date
------------
start_date = setup_date
check the setup date is present in the loan_details, if not return error

broken_period_interest
----------
Calculate Broken period interest using sanction_amount, start_date, end_date, interest_rate

days
-----------
Difference between end_date and start_date

Output :

  "broken_period_interest"    =>  array(8) 
[
"debug" => array(2)
"skip" => string(2) "no"
"end_date" => string(8) "20200807"
"start_date" => string(8) "20200710"
"days" => string(2) "28"
"broken_period_interest" => float(921)
"status" => string(7) "success"
"message" => string(33) "broken_period_interest calculated"
]

Visual Output