Skip to content

Instantly share code, notes, and snippets.

@joemaller
Created December 15, 2016 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaller/687dadf938fbf1c329aeb99e2431ff0c to your computer and use it in GitHub Desktop.
Save joemaller/687dadf938fbf1c329aeb99e2431ff0c to your computer and use it in GitHub Desktop.
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