Closed scottyeager closed 5 months ago
Public traffic is also billed
I did some maths to check these numbers including NU for last billing and nru reports. I chose 2 last reports that correspond to more or less same period of time (billing reports and nru reports are not sent at same moment even if sent at same frequency) See here:
{
"data": {
"contractBillReports": [
{
"amountBilled": "57965722",
"contractID": "338060",
"discountReceived": "Silver",
"timestamp": "1712151336"
},
{
"amountBilled": "57764807",
"contractID": "338060",
"discountReceived": "Silver",
"timestamp": "1712154936"
}
],
"nruConsumptions": [
{
"contractID": "338060",
"nru": "118471108134",
"timestamp": "1712148920",
"window": "3600"
},
{
"contractID": "338060",
"nru": "117846081049",
"timestamp": "1712152520",
"window": "3600"
}
]
}
}
Given the what calculator gives for Gold discount for such resources
921 tft/month / 30 / 24 = 1.28 tft/hour
This means only CU SU IPU resources before discount
Before 60% discount = Gold * 2.5
cost [CU SU IPU] = 2302,5 tft/month or 3,19 tft/hour
Now let see NU resources cost per hour
nru consumption nru price
nru consumption = 117846081049 10e-9 = 117,84 Gb
nru price usd = 15000 10e7 = 0.0015 usd/hour
nru price tft = 0.0015 usd/hour / 0.02642 usd/tft = 0.0567 tft/hour
cost [NU] = 117,84 0.0567 = 6,68 tft/hour
So it gives
Total cost [NU CU SU IPU] = 3,19 + 6,68 = 9,87 tft/hour
After applying 40% Silver discount which is on billing report
Total cost [Silver] = 9,87 * 0,6 = 5,922 tft/hour
Which corresponds to what was billed on billing report
57764807 * 10e7 = 5,77 tft for 1 hour
Thanks guys. Billing for network traffic indeed explains what's going on here.
A user reported that they think they are being billed too much on mainnet. After investigating a bit, I found some behaviors I can't explain.
The user has 37 VMs deployed on a mix of certified and non certified nodes with the same specs, and all VMs have a public IP reserved.
Here's an example contract:
Based on the dashboard calculator, this contract should be bill as seen below. I've entered the users actual approximate balance which should qualify for the gold discount level:
I also double checked this calculation against another spreadsheet we use for working with the billing calculations and the figures were very close.
But when I check some recent billing reports for this contract, I see the following:
The amounts billed seem much too high and only a silver discount is applied. These are hourly bills, so the amount should be more like:
Instead of:
Here's another example of a contract with the same specs, also on a DIY node, with rather different billing over its last ten billing reports:
I can't find any reason to explain why these contracts should be billing at multiples times what's shown by the calculator.