Pay Bills
Intrest Calculation
const interestRate = 0.1; // 10% annual interest rate
const interestPeriod = 30; // 30-day billing period
const dailyInterestRate = interestRate / 365;
const daysInBillingPeriod = Math.min(interestPeriod, dateDifference);
const interestAmount = Math.round((salary * dailyInterestRate * daysInBillingPeriod) * 100) / 100; // Round to 2 decimal places