Last active
January 5, 2016 00:55
-
-
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
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
#!/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