债权转让后的利息计算示例:
function calculateInterest(principal, rate, days) {
// 本金 × 年利率 × 持有天数 / 365
return principal * (rate / 100) * days / 365;
}
// 示例:10万元本金,年利率8%,持有90天
const interest = calculateInterest(100000, 8, 90);
document.write("应收利息:" + interest.toFixed(2) + "元");
关键要素说明:
- 本金以转让协议约定为准
- 利率不得超过法定上限(LPR4倍)
- 计息天数按实际持有日计算