Calculation for estimated storage is incorrect
Created by: mtlynch
Sia-UI estimates the storage capacity based on the allowance:
The calculation is here:
This calculation is essentially:
[allowance] / [storage_per_tb_per_month]
This is incorrect as it neglects upload cost and contract fees. It also misuses the storage price as the price per TB per contract period when it is actually the price per TB per month. The actual calculation requires Sia-UI to solve for tb_count
in this equation:
allowance = (storage_per_tb_per_month * tb_count * months_per_contract) +
(upload_per_tb * tb_count) +
(contract_fees)