✍️APY Calculations

Calculating APY

In this section, we are breaking down the APY calculations !

First, let's compute the number of seconds per day, week, month, and finally per year :

sec_in_day=24*60*60
sec_in_week=7*24*60*60
sec_in_month=30*24*60*60)
sec_in_year=365*24*60*60

Now , let's compute the return (ROI) per second that we're getting from an 986,940% APY

r_sec=((9869.40)**(1/sec_in_year)-1)
r_day=(1+r_sec)**sec_in_day-1
r_week=(1+r_sec)**sec_in_week-1
r_month=(1+r_sec)**sec_in_month-1
r_year=(1+r_sec)**sec_in_year-1
ROI per second : 2.9164116188695743e-05 %
ROI per day : 2.5517940440955122 %
ROI per week : 19.289669767918905 %
ROI per month : 112.95991752520487 %
ROI per year : 986839.9998231066 %

Last updated