small fix on the profitablity page
This commit is contained in:
@@ -64,7 +64,7 @@ function calcRiderMetrics(rider) {
|
||||
}
|
||||
|
||||
const varCost = kms * VARIABLE_RATE_KM;
|
||||
const fixedCost = FIXED_COST_PER_SLOT;
|
||||
const fixedCost = orders.length > 0 ? FIXED_COST_PER_SLOT : 0;
|
||||
const totalCost = varCost + fixedCost;
|
||||
const net = revenue - totalCost;
|
||||
const margin = revenue > 0 ? (net / revenue) * 100 : 0;
|
||||
|
||||
Reference in New Issue
Block a user