Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different caculating result from Azure price caculator #4

Open
rekenliu opened this issue Jun 24, 2016 · 0 comments
Open

Different caculating result from Azure price caculator #4

rekenliu opened this issue Jun 24, 2016 · 0 comments

Comments

@rekenliu
Copy link

Could you please check the issue reported in this forum thread?
https://social.msdn.microsoft.com/Forums/en-US/aa0cd926-1bfe-40c9-925e-76607e074a6a/azure-usage-scaled-rates-pricing?forum=partnercenterapi
The price calculated by this sample code is different from Azure calculator. The key difference is in :
total = total + ((remainingUsage - LastKey + 1) * LastKeyValue);
when the remaining usage is 1, and Last Key is 0, the real result would be (1-0+1)=2, so the real usage in this command is 2, not 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant