Skip to content

Conversation

@carsonsterlingchan
Copy link

Please kindly review the changes that I made primarily for the additional features. Currently, a simple daily accrued interest calculation is used for account interestEarned. A compound daily accrued interest calculation is also available in account.py file. Please let me know if you prefer the compound interest calculation. I will make the necessary change.

carsonsterlingchan added 9 commits August 21, 2016 23:42
now method is modified to return UTC current date and time.

customedDate method is added to allow user to provide a backdated date
if necessary.
There are two sets of interest calculation tests:  Simple Daily
Interest and Compound Daily Interest.
The Compound Daily Interest set is turned off.  Please turn it on if
that is the calculation you are looking for.
Make sure interestFunc is set to self._cal_Compound_AccruedInt in
interestEarned method in Account class file.
Added account transfer and account overdrawn test.
Added a transaction creation with customed date
Modified to support new daily accrued interest calculations.

Currently, interestEarned is set to use simple daily accrued interest
method.  Compound daily accrued interest calculation is included.  This
can be switched to use compound interest calculation.  Set interestFunc
= self._cal_Simple_AccruedInt
getFirstCustomer method is fixed.  It only prints out the firstCustomer
name if there is a customer.
dded transferAccounts method to allow user to transfer money between
his/her accounts in the bank.

In statementForAccount method, totalSummary is changed to use
account.sumTransactions() method.
transDate.
transDate is for interest calculation purpose.  If transDate is not
passed,
it will be defaulted to current UTC datetime.
Restored the original version from the master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant