Question: Write a function in python which takes in a dictionary, ` abcb _ rates ` , and the amount of money to be deposited. The

Write a function in python which takes in a dictionary, `abcb_rates`, and the amount of money to be deposited. The function should return the effective interest rate, also in percentage points. It is guaranteed that there are no gaps within the range of deposits, and that the promotional interest rates being applied starts from $0. Once the amount deposited is above the range the reaming amount will be charged 0.05%
For Example:
abcb_rates ={
'$0- $10000': 3.00,
'$10000- $30000': 4.00,
}
calculate(abcb_rates, 40000)
Expected output:
2.7625
Explanation:
The value is gotten via 10000/40000*3.00+20000/40000*4.00+10000/40000*0.05.
The first $10000 is under 3% interest, next $20000($30000- $10000) is under 4%, and the last $10000($40000- $30000) is under 0.05% interest.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!