create account

RE: Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code by gadrian

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @spknetwork/usvpezvf

· @gadrian ·
RE: Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code
> <code>const amount = p * (1 + r / 365);</code>

What happens in leap years? Slightly increased interest?

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@gadrian/re-spknetwork-4hy5yd)
properties (22)
authorgadrian
permlinkre-spknetwork-4hy5yd
categoryhive-112019
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["leofinance"],"canonical_url":"https://leofinance.io/@gadrian/re-spknetwork-4hy5yd"}
created2022-06-22 16:54:24
last_update2022-06-22 16:54:24
depth1
children4
last_payout2022-06-29 16:54:24
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_length202
author_reputation645,277,231,009,406
root_title"Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,246,949
net_rshares0
@disregardfiat ·
The daily return is always exactly the same. 
properties (22)
authordisregardfiat
permlinkre-gadrian-rdxoo4
categoryhive-112019
json_metadata{"tags":["hive-112019"],"app":"peakd/2022.05.9"}
created2022-06-23 14:09:42
last_update2022-06-23 14:09:42
depth2
children3
last_payout2022-06-30 14:09:42
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_length45
author_reputation345,191,366,639,512
root_title"Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,269,321
net_rshares0
@gadrian · (edited)
Yes, but it's 1 more day in a leap year. Which means <code>return parseInt(interest * t);</code> will return a little more when t is the equivalent of 366 days.  Right?
properties (22)
authorgadrian
permlinkre-disregardfiat-rdxoqs
categoryhive-112019
json_metadata{"tags":"hive-112019"}
created2022-06-23 14:11:15
last_update2022-06-23 14:15:03
depth3
children2
last_payout2022-06-30 14:11:15
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_length168
author_reputation645,277,231,009,406
root_title"Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,269,366
net_rshares0
@disregardfiat ·
It will never be calculated to 366 tho. If you earn 10 cents today, you'll earn 10 cents any day. The interest also doesn't compound in this case. 
properties (22)
authordisregardfiat
permlinkre-gadrian-rdxp00
categoryhive-112019
json_metadata{"tags":["hive-112019"],"app":"peakd/2022.05.9"}
created2022-06-23 14:16:54
last_update2022-06-23 14:16:54
depth4
children1
last_payout2022-06-30 14:16: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_length147
author_reputation345,191,366,639,512
root_title"Earn SPK by Delegating LARYNX | Share your Feedback and Review the Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,269,511
net_rshares0