Bob Estimation Tool (Code Challenge)

  • Page Owner: Not Set
  • Last Reviewed: 2020-01-10

(Unofficial) Bob Estimation Tool

The following estimates were suggested by a junior developer. Apply the Bob Estimation to to correct these estimates.

Examples

4 hours estimate => 8 days

Notes

  • All values are plural cause writing tests is hard.

Tests

Test = (x, y) => x == y ? console.log("Pass", "Yours", x, "Correct:", y) || true : console.log("Fail", "Yours", x, "Correct:", y) || false;

BobEstimator = () => !1;

Test(BobEstimator("2 hours"), "4 days");
Test(BobEstimator("6 hours"), "12 days");
Test(BobEstimator("4 minutes"), "8 hours")
Test(BobEstimator("30 minutes"), "60 hours")
Test(BobEstimator("2 weeks"), " 4 months")
Test(BobEstimator("5 weeks"), "10 months")
Test(BobEstimator("6 months "), "12 years")
Test(BobEstimator("2 months "), "4 years")
Test(BobEstimator("2 years"), "4 decades")
Test(BobEstimator("3 years"), "6 decades")