create account

APR Calculator Discord Bot: Compounding Interest Added by jazzhero

View this thread on: hive.blogpeakd.comecency.com
· @jazzhero · (edited)
$2.95
APR Calculator Discord Bot: Compounding Interest Added

![APRCalculatorUpdate.gif](https://images.hive.blog/DQmTkTVCjyZUAr11dDSS4HNii2BwToSgBm7A92NtaRHRAAC/APRCalculatorUpdate.gif)


<br>I’m not sure if anybody else is using the [APR calculator](https://leofinance.io/@jazzhero/apr-calculator-discord-bot-get-your-hbd-earnings-game-going) function I added to our Discord bot last week. But it has at least helped me set up my HBD savings and weekly top-up goals, so the effort to code was worth it. It was possible to calculate it manually, but a Discord bot doing it is much more convenient. 😄


<br>A couple of users have mentioned that it’s better to incorporate **compound interest** into the bot's calculations. I already thought of it while I was starting to create the function. But then dismissed the idea because there’s already a “weekly top-up” calculation and considered compounded interest less significant. However, after looking at it deeper, I realized I was wrong. Compound interest has a much bigger impact on earnings than I assumed.


<br>**So here's version 2.0 of our HivePhBot's APR Interest Calculator.** <br>Check it out on Discord!

<br>
<br>

#### Compounding Interest Calculation Update

<br>Compounding happens when the new interest is calculated based on the starting balance and all the previously accumulated interest.

Consider an initial balance or principal amount of **100 HBD**. It will earn an interest of **1.64 HBD** for its first month. When the compounding option is available, the next interest calculation will use **101.64 HBD** (principal plus previous interest), instead of the starting 100 HBD. The next interest earning won’t seem much because it’s only **1.67 HBD**, just **0.03 HBD** higher than the previous. But the real magic happens when you let compounding do its work for long periods.

<br>Here’s the bot calculation for the APR earnings of a **100 HBD** principal over a year with **20% APR**. I made it a point to both include the figures for when interest is compounded (left) and when it’s not (right).

<center>![image.png](https://images.hive.blog/DQmdQRYcaDGTgwVpEsVS6GJTwawHWrvopZP1YauLBVcPFYc/image.png)</center>

In the second month, there’s only **0.03 HBD** interest increase. But when compounded in a year, your 20% APR would yield an extra **1.944 HBD**. This is for a 100 HBD balance. If you invest more, then increase on earnings will be much more exciting too.

<br>
<br>

#### How to do Compounding in HBD Savings

<br>You may wonder why I calculated compound interest for a month’s duration. It’s because users are only allowed to claim HBD savings interest every **30 days**. Whenever a claim is successfully processed, you'd have to wait 30 days to do the next.

After claiming the interest, you’d have to re-invest it by transferring the HBD amount you earned to Savings at the soonest possible time. If you didn’t do this step, then compounding doesn’t happen.

I have yet to explore options on how to automatically do claims of interest and direct transfer to savings. Since my goal is to regularly execute HBD Savings top-ups whenever I get my author rewards, I am not too compelled to look for automatic options. I can do it manually since I’m regularly checking my Hive account.

<br>
<br>

#### More Examples of the Impact of Compounding

<br>

The **!apr** command is available to all users of servers with the **HiveBotPH** Discord bot. You can either type the command on a channel that the bot has access to, or privately send the bot a direct message. Take note that command parameters didn’t change after this update.

`!apr STARTING_HBD_BALANCE OPTIONAL_WEEKLY_HBD_TOPUP`
 
 
<br>Here are more examples highlighting the difference in earnings with and without compounding.

<br>When you start with something as high as **2000 HBD**, the gap between the two calculations is really much more prominent. 

<center>
![image.png](https://images.hive.blog/DQmQXjcKc3H5JeZgY32XwRwqgwKwz6EYmBDWq5jYVbM6eiT/image.png)</center>

<br>And here’s my humbler personal target for my HBD Savings. With around **300 HBD** starting balance, I aim to add at least **20 HBD** weekly into my Savings. Of course, I’ll make sure to re-invest whatever interest I earn monthly to get that **10+ HBD** increase.

<center>
![image.png](https://images.hive.blog/DQmSSMStHJ4pBxhundtc7efbG5qvaXDEPHrn56hZvDS6fE1/image.png)
</center>

<br>

**If you have any questions or suggestions, just leave it in the comments section below. Cheers!**
<br>


<br>
<br>
<div class="pull-right">
<br>
<b>Want to earn while having fun? <a href="https://splinterlands.com?ref=minnowlife">Join Splinterlands</a>.</b>
<br>
<br>
<b>Like the thumbnail on this post? Make your own using <a href="https://www.canva.com/join/zpf-jhx-pyd">Canva</a>.</b>
<br>
<br>
<sub>
<i>Attributions:</i><br>
----------<br>
Images created with <a href="https://www.canva.com/">Canva</a>.  Cute Discord bot avatar is created with <a href="https://charat.me/">Charat.me</a>. Also, several screenshots from Discord.</sub>
</div><br>



Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@jazzhero/apr-calculator-discord-bot-compounding-interest-added)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 137 others
properties (23)
authorjazzhero
permlinkapr-calculator-discord-bot-compounding-interest-added
categoryhive-167922
json_metadata"{"app":"leofinance/0.2","format":"markdown","tags":["apr","compoundinterest","community","discordbot","hiveph","proofofbrain","neoxian","cpt","dev","leofinance"],"canonical_url":"https://leofinance.io/@jazzhero/apr-calculator-discord-bot-compounding-interest-added","links":["https://leofinance.io/@jazzhero/apr-calculator-discord-bot-get-your-hbd-earnings-game-going","https://splinterlands.com?ref=minnowlife","https://www.canva.com/join/zpf-jhx-pyd","https://www.canva.com/","https://charat.me/"],"image":["https://images.hive.blog/DQmTkTVCjyZUAr11dDSS4HNii2BwToSgBm7A92NtaRHRAAC/APRCalculatorUpdate.gif","https://images.hive.blog/DQmdQRYcaDGTgwVpEsVS6GJTwawHWrvopZP1YauLBVcPFYc/image.png","https://images.hive.blog/DQmQXjcKc3H5JeZgY32XwRwqgwKwz6EYmBDWq5jYVbM6eiT/image.png","https://images.hive.blog/DQmSSMStHJ4pBxhundtc7efbG5qvaXDEPHrn56hZvDS6fE1/image.png"],"users":["jazzhero"],"description":"As requested, compound interest is now included in HBD Savings earning calculation."}"
created2022-05-04 12:43:57
last_update2022-05-04 12:48:15
depth0
children10
last_payout2022-05-11 12:43:57
cashout_time1969-12-31 23:59:59
total_payout_value1.504 HBD
curator_payout_value1.441 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,130
author_reputation22,009,542,931,933
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,899,492
net_rshares3,722,338,876,900
author_curate_reward""
vote details (201)
@chincoculbert ·
$0.04
Im sure it'll be of great help now...and it has pretty cool features. 
It's on the Leofinance discord server??

I'm not on the server, I'll love to test it out for myself ,😩
👍  
properties (23)
authorchincoculbert
permlinkre-jazzhero-rbd8pf
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2022.05.1"}
created2022-05-04 16:05:42
last_update2022-05-04 16:05:42
depth1
children2
last_payout2022-05-11 16:05:42
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length173
author_reputation49,102,528,782,230
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,904,970
net_rshares48,668,948,945
author_curate_reward""
vote details (1)
@jazzhero ·
Thanks for the feedback! 

It's a community bot and I only do the code XD So I don't have ownership to where it goes. It's only active in a few servers like OCD's. 😅 And I don't think it's on LeoFinance's discord yet.
properties (22)
authorjazzhero
permlinkre-chincoculbert-rbda5d
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2022.05.1"}
created2022-05-04 16:36:54
last_update2022-05-04 16:36:54
depth2
children1
last_payout2022-05-11 16:36:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation22,009,542,931,933
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,905,922
net_rshares0
@chincoculbert ·
Ok I get...I think I'll have to check out OCD I think I'm in their server.

Thanks for the feedback too ❤️
properties (22)
authorchincoculbert
permlinkre-jazzhero-rbdan5
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2022.05.1"}
created2022-05-04 16:47:33
last_update2022-05-04 16:47:33
depth3
children0
last_payout2022-05-11 16:47:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length106
author_reputation49,102,528,782,230
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,906,165
net_rshares0
@gangstalking ·
<div><p><center><b>Whoever is directly controlling the V2K told me to kill myself.<br/>They told me if I killed myself now it would save the lives of countless others.<br/> Saying the longer I wait to kill myself the more people will suffer.</b></center></p></div><br/>They are reckless and should have shown the proper media what they had before taking me hostage for 5 years. I know there are many in prison that dont deserve to be there because of this. Your stay in prison will not be fun @battleaxe and friends. People are going to want you dead when they find out what you did. I hope you die a slow painful death. You sick mother fuckers.<br/><br/> https://peakd.com/gangstalking/@acousticpulses/electronic-terrorism-and-gaslighting--if-you-downvote-this-post-you-are-part-of-the-problem<br/><br/> Its a terrorist act on American soil while some say its not real or Im a mental case. Many know its real. This is an ignored detrimental to humanity domestic and foreign threat. Ask informed soldiers in the American military what their oath is and tell them about the day you asked me why. Nobody has I guess. Maybe someone told ill informed soldiers they cant protect America from military leaders in control with ill intent. How do we protect locked up soldiers from telling the truth?
👎  
properties (23)
authorgangstalking
permlinkre-jazzhero-apr-calculator-discord-bot-compounding-interest-added-20220504t124840504z
categoryhive-167922
json_metadata{"app":"hive-bot/0.6.3"}
created2022-05-04 12:48:45
last_update2022-05-04 12:48:45
depth1
children0
last_payout2022-05-11 12:48:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,292
author_reputation-67,597,107,868,724
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,899,592
net_rshares-6,969,151,863
author_curate_reward""
vote details (1)
@ifarmgirl ·
$0.04
Oh you already have that feature, amazing! This certainly helps. Thank you

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@ifarmgirl/re-jazzhero-47xjwd)
👍  
properties (23)
authorifarmgirl
permlinkre-jazzhero-47xjwd
categoryhive-167922
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["apr","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@ifarmgirl/re-jazzhero-47xjwd"}
created2022-05-04 13:02:48
last_update2022-05-04 13:02:48
depth1
children4
last_payout2022-05-11 13:02:48
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.020 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation1,095,325,086,844,830
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,899,967
net_rshares49,975,442,347
author_curate_reward""
vote details (1)
@jazzhero ·
Thanks for the feedback! The bot was originally a curation helper, but it expanded out of our control. 😅 If you're on HivePH or OCD discords, then you can message the bot to let it calculate APR.
properties (22)
authorjazzhero
permlinkre-ifarmgirl-rbd0jo
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2022.04.6"}
created2022-05-04 13:09:30
last_update2022-05-04 13:09:30
depth2
children3
last_payout2022-05-11 13:09:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length195
author_reputation22,009,542,931,933
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,900,163
net_rshares0
@ifarmgirl ·
Pleasure :) I read an [online calculator](https://peakd.com/hive-189306/@rutablockchain/introducing-the-compound-interest-calculator-at-hbd-eng-esp) being developed and I actually asked if it was possible to add the top up feature and you've already done that through the bot so it's awesome! Will check it out on discord soon.

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@ifarmgirl/re-jazzhero-m6dm7)
properties (22)
authorifarmgirl
permlinkre-jazzhero-m6dm7
categoryhive-167922
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["hive-167922","leofinance"],"canonical_url":"https://leofinance.io/@ifarmgirl/re-jazzhero-m6dm7","links":["https://peakd.com/hive-189306/@rutablockchain/introducing-the-compound-interest-calculator-at-hbd-eng-esp"]}
created2022-05-04 13:13:54
last_update2022-05-04 13:13:54
depth3
children2
last_payout2022-05-11 13:13:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length422
author_reputation1,095,325,086,844,830
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,900,263
net_rshares0
@juanvegetarian · (edited)
Nice one, @jazzhero . This is a very helpful tool that can encourage more to save and invest in the platform. Good work, man! 

!LUV
!PIZZA
!hivebits
properties (22)
authorjuanvegetarian
permlinkre-jazzhero-rbdu0c
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-05-04 23:45:48
last_update2022-05-04 23:57:39
depth1
children0
last_payout2022-05-11 23:45:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length149
author_reputation81,216,062,502,819
root_title"APR Calculator Discord Bot: Compounding Interest Added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,916,541
net_rshares0