here goes!
We all know about the concept of interest if we are depositing our money into a bank account.
But know more than the concept.
Know that other than giving interest in a minuscule percentage, they also apply administration fee, though some kinds of accounts don't apply any fee. Let's take a look at those who have that kind of fee.
First, establish
Then, we get that the amount of money we get in the next month is the amount of money we have in the previous month, added with interest, subtracted with administration fee, or simply shown as
If we want our money to stay constant, then that means
Solving those equation for
Setting
Hmm, not much of a difference. And not a reaaly big amount of money either. Note that, I think the interest rate is pretty big. As
Now, let's assume that your money isn't that much. You have to add your monthly incomes also. Declare two new variables,
Generally, what you have in your account next month consists of:
- Your money from last month,
- the interest from last month,
- minus the administration fee.
For
Generalizing this for
Since the summation is a geometric series, we can simplify it to
Since we have assumed that the interest is applied before the administration fee, we can say that
Since there's logarithm, we have to establish a constraint, that is,
And don't forget that
Okay, now the hellish part is finished, let's try to plug in values.
Assume that the interest rate is 1.5% yearly, your monthly salary is $350, initial money is $290, administration fee is $1.5, then,
Plugging in values,
Rounding up, we have
I hope there's nothing wrong with the calculation...
yang cuma gue bisa lakuin Dam, haha
ReplyDeletetebak buat apa? wkwkwk
% = sisa bagi
m = months
d = days
d = (m%2)*31 + (m-(m%2))*30;