For Windows install users, I’ve created a powershell version of this script. I’m new to SNO and Powershell, so I hope it’s right…
$j = Invoke-WebRequest 'http://192.168.1.202:14002/api/satellites' | ConvertFrom-Json
$egress=$j.data.egressSummary
$disk=$j.data.storageSummary
$days=[datetime]::DaysInMonth((date).Year,(date).Month)
$day=(date).Day
$TB=[Math]::Pow(10,12)
$egress_pay=$egress/$TB*20
$disk_pay=$disk/$TB/(24*$days)*1.5
$total=$egress_pay+$disk_pay
$per_hour=$total/($day*24)
$div4=$total/4
$div2=$total/2
$div3_4=$total*3/4
$times3_1=$div4*3
$times3_2=$div2*3
$times3_3=$div3_4*3
$times3_4=$total*3
" Simple Storj Payout Estimate"
" -----------------------------"
" Egress Estimate: {0:C}" -f $egress_pay
" Disk Usage Estimate: {0:C}" -f $disk_pay
" Earnings Per Hour: {0:C}" -f $per_hour
" Full Payout : {0:C} Surge x3 : {1:C}" -f $total,$times3_4
" Months 1-3 : {0:C} Surge x3 : {1:C}" -f $div4,$times3_1
" Months 4-6 : {0:C} Surge x3 : {1:C}" -f $div2,$times3_2
" Months 7-9 : {0:C} Surge x3 : {1:C}" -f $div3_4,$times3_3