Closed vcardillo closed 8 years ago
vincent [7:32 PM] There are interesting implications as to when we round the numbers.
[7:33] So by not rounding 13/4 and leaving it as 3.25, you get 48.75 minutes which becomes 50 minutes. As opposed to rounding it earlier to 3, and ending up with 45 minutes still.
[7:33] Not really a big deal, just an observation.
This has been released.
Calculate a simple system-wide ETA (SSE) to display in the app.
Average orders per driver * 15 minutes = sse_result
settings
.sse_minutesMultiplier
instead of hardcoding minutes.Average orders per driver = Total outstanding orders / total online drivers
Total outstanding orders = All orders != (Delivered or Cancelled)
settings
table to store thesse_result
, and to find the minutes multiplier atsse_minutesMultiplier
All fields are already on dev and prod.
sse_minutesMultiplier
and the value should not be lower.Average orders per driver
comes to some decimal that results in avg*min being some decimal amount of minutes, let's just round the result.