Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@greduan
Last active January 5, 2016 00:55
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 greduan/23715b46f4a4b9de82f8 to your computer and use it in GitHub Desktop.
Save greduan/23715b46f4a4b9de82f8 to your computer and use it in GitHub Desktop.
Script to figure out how long you'll take on a ticket, worst case, expected case and best case are provided
#!/usr/bin/env node
if (process.argv.length < 5) {
console.log('usage: time-estimate BEST EXPECTED WORST')
process.exit(0)
}
var best = parseFloat(process.argv[2]),
exp = parseFloat(process.argv[3]),
worst = parseFloat(process.argv[4]),
result = ((best + (3 * exp) + (2 * worst)) / 6)
console.log(result)
process.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment