Answer the question
In order to leave comments, you need to log in
How to calculate the cost of cargo delivery if only intermediate data are known?
The client cannot unambiguously name the cost per kg/cube/km, but he can definitely name the price in total for the minimum characteristics
: is = $50.
It should also be taken into account that if the characteristics are less than these, then the price still remains the same - $ 50 (i.e. this is the lowest price)
I am making a calculator on the site where users can enter data (weight, cubic meter, km) and I find it difficult to derive a formula for this (when the above intermediate data are known).
Question: Is it possible to derive a calculation formula based on intermediate data?
Answer the question
In order to leave comments, you need to log in
According to the given single example, no way. Make a questionnaire with steps, for example, 50 kg, 1 cube, 50 km, and then approximate.
How does he calculate the cost? At random? Then use a pseudo-random generator. If not, show your intermediate data, up to the max delivery, approximate and check on the client.
Let the client give all possible options .
You draw conclusions from them
. Write an algorithm.
Let him check
. There will be no formulas - there will be an algorithm.
If the volume is within X1-X2, and the weight is within X3-X4, and the distance is..., then we count from
... less than required, the customer can get
If you have a set of data, then you are unlikely to derive a formula under such conditions without additional information. Or you need to find some general logistic algorithm and adapt it to the task. Or you need to proceed from the fact that weight and volume are not interdependent, and the cost of transportation initially comes from the volume of the van that carries the cargo, or from the maximum load of the transport. Initially, the cost of traveled km. can be calculated, and the carrier has such information.
On good it is better to ask the formalized tariffs. They, most likely, are in someone's excel plate. They themselves somehow consider the cost of transportation. And write on the site that the calculation is approximate.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question