1{
2 "id": "LNACCR-0412",
3 "name": "Daily interest accrual by day-count basis",
4 "hitPolicy": "UNIQUE",
5 "inputs": [
6 { "name": "basisCode", "type": "string", "source": "LN-BASIS-CODE" }
7 ],
8 "outputs": [
9 { "name": "dailyInterest", "type": "decimal", "scale": 2, "rounding": "HALF_UP" }
10 ],
11 "rules": [
12 { "when": ["\"0\""], "then": ["principal * annualRate / 360"] },
13 { "when": ["\"5\", \"6\""], "then": ["principal * annualRate / 365"] },
14 { "when": ["-"], "then": ["principal * annualRate / 365"], "note": "ELSE branch: any other code" }
15 ],
16 "types": {
17 "principal": "decimal(11,2) from S9(9)V99 COMP-3, 6 bytes",
18 "annualRate": "decimal(9,6) from S9(3)V9(6) COMP-3, 5 bytes"
19 },
20 "source": "LNACCR02.cbl:1187-1204"
21}