Created
December 15, 2016 22:05
-
-
Save joemaller/687dadf938fbf1c329aeb99e2431ff0c to your computer and use it in GitHub Desktop.
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
var githubPriceForUsers = function (users) { | |
return Math.max(0, users - 5) * 9 + 25; | |
}; | |
var githubUsersForCost = function (price) { | |
var f = Math.ceil(Math.max(0, price - 25)/9); | |
return [`${f + 5} users`, `$${b(f + 5)}`]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment