You are viewing a single comment's thread from:RE: Earn SPK by Delegating LARYNX | Share your Feedback and Review the CodeView the full contextgadrian (75)in SPK Network • 3 years ago const amount = p * (1 + r / 365); What happens in leap years? Slightly increased interest? Posted Using LeoFinance Beta
The daily return is always exactly the same.
Yes, but it's 1 more day in a leap year. Which means
return parseInt(interest * t);
will return a little more when t is the equivalent of 366 days. Right?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.
Works for me. One extra day of interest in leap years. I believe it's the same in Hive.