Forked from strophy/dash_budget_payout_dates.sh
Last active
November 4, 2021 19:26
-
-
Save thephez/1bca32b4daf0b51518b636cf69bb1acc to your computer and use it in GitHub Desktop.
estimate future dash budget payout dates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAST_SB_DATE="2021-10-27T20:33:32+0000" | |
LAST_SB_HEIGHT=1561904 | |
NEXT_SB_HEIGHT=1578520 | |
SB_BLOCK_INTERVAL=16616 | |
MONTHS_TO_PROJECT=24 | |
D0=$(TZ=UTC date --date="$(date --date="$LAST_SB_DATE")"); | |
for block in `seq $NEXT_SB_HEIGHT $SB_BLOCK_INTERVAL $(($LAST_SB_HEIGHT + ($SB_BLOCK_INTERVAL*$MONTHS_TO_PROJECT)))`; | |
do DD=$(TZ=UTC date --date="$(date --date="$D0") +727 hours +5 minutes +2 seconds"); | |
D0=$DD; | |
echo "$block - $DD"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run at https://replit.com/@thephez/Estimate-budget-payout-dates#main.sh