bustersports
Programmer
Hi,
Thanks in advance for any help.
What I am trying to do is calculate what the rate should be on a shipment. I have the rate and min weight and max weight. I get via an input the weight of the shipment. I need to determine what that shipment rate we should be charged.
Table examples
Rate Table
Min Weight Max Weight Rate
0.00 0.50 $12.99
0.51 1.00 $14.29
1.01 1.50 $15.49
1.51 2.00 $16.67
2.01 2.50 $17.76
2.51 3.00 $18.85
3.01 3.50 $19.92
Shipment info table
Shipment Weight
1 .511 lbs
2 1.0 lbs
3 2.5 lbs
4 2.51 lbs
What I need to know is how to determine is:
Shipment 1 - rate would be $14.29
Shipment 2 - rate would be $14.29
Shipment 3 - rate would be $17.76
Shipment 4 - rate would be $18.85
In summary, I need to be able to determine what the rate of a shipment is, given the weight can be between min and max.
I hope this is clear. Thanks again.
Thanks in advance for any help.
What I am trying to do is calculate what the rate should be on a shipment. I have the rate and min weight and max weight. I get via an input the weight of the shipment. I need to determine what that shipment rate we should be charged.
Table examples
Rate Table
Min Weight Max Weight Rate
0.00 0.50 $12.99
0.51 1.00 $14.29
1.01 1.50 $15.49
1.51 2.00 $16.67
2.01 2.50 $17.76
2.51 3.00 $18.85
3.01 3.50 $19.92
Shipment info table
Shipment Weight
1 .511 lbs
2 1.0 lbs
3 2.5 lbs
4 2.51 lbs
What I need to know is how to determine is:
Shipment 1 - rate would be $14.29
Shipment 2 - rate would be $14.29
Shipment 3 - rate would be $17.76
Shipment 4 - rate would be $18.85
In summary, I need to be able to determine what the rate of a shipment is, given the weight can be between min and max.
I hope this is clear. Thanks again.