{
    "Function": "getInterestDueTillInstalmentDeadline",
    "File": "contracts/Pool/Repayments.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol",
        "contracts/interfaces/IRepayment.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "SafeMath",
        "SafeMath",
        "SafeMath"
    ],
    "Internal Calls": [
        "getInterestPerSecond",
        "getNextInstalmentDeadline"
    ],
    "Library Calls": [
        "sub",
        "sub",
        "mul",
        "div"
    ],
    "Low-Level Calls": [],
    "Code": "function getInterestDueTillInstalmentDeadline(address _poolID) public view returns (uint256) {\n        uint256 _interestPerSecond = getInterestPerSecond(_poolID);\n        uint256 _nextInstalmentDeadline = getNextInstalmentDeadline(_poolID);\n        uint256 _loanDurationCovered = repayVariables[_poolID].loanDurationCovered;\n        uint256 _interestDueTillInstalmentDeadline = (\n            _nextInstalmentDeadline.sub(repayConstants[_poolID].loanStartTime).sub(_loanDurationCovered)\n        ).mul(_interestPerSecond).div(10**30);\n        return _interestDueTillInstalmentDeadline;\n    }"
}