Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 701 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 701 Bytes

AccountL

Java library for interest calculation of saving

Usage

// Create FixedDeposit instance
FixedDeposit fd = new FixedDeposit();
fd.setStartDate(new DateTime());
fd.setMonths(12);
fd.setInterestRate(0.027);
fd.setTaxRate(0.154);
fd.setSeedMoney(10000000L);

// Get money and interest after given months
fd.moneyAtTheLastMonth();
fd.interestAtTheLastMonth();
// Create RecurringDeposit instance
RecurringDeposit rd = new RecurringDeposit();
rd.setStartDate(new DateTime());
rd.setMonths(12);
rd.setInterestRate(0.032);
rd.setTaxRate(0.154);
rd.setSeedMoney(100000L);

// Get money and interest after given months
fd.moneyAtTheLastMonth();
fd.interestAtTheLastMonth();