Removed unnecessary initial price division by duration
Reordered calculation lines order for readability
As duration_cost and cpu_cost are normalized from per-second-cost to be multiplied by avg duration, doing so with initial price (normalizing to per-second-cost and multiplying by avg duration) is redundant, so sole value is enough.
What I've done:
As duration_cost and cpu_cost are normalized from per-second-cost to be multiplied by avg duration, doing so with initial price (normalizing to per-second-cost and multiplying by avg duration) is redundant, so sole value is enough.