In order to accurately price a movement with carriers, MachShip requires:

- Length
- Height
- Width
- Weight
- Quantity
- ItemType

The reason that we need these dimensions over a pure cubic number is because various carriers have surcharges that can be impacted by these values, and the size of items can affect which vehicles are able to take the goods, and therefore the services that we can make available.

Examples of surcharges that are affected include:

- Over length surcharges
- Tailgate fees for items over 30-40kg
- Per item fees

If your system does not have the capability to generate full box dimensions, there are a few basic rules and formulas that you can use to generate these values while still ensuring we are able to get you as accurate as a rate as possible.

In order to accurately generate pricing, we need the full set of dimensions and every effort should be made to provide these as accurately as possible. The formulas and methods laid out below should be considered "workarounds" and only used in circumstances where there is no other choice.

This first scenario will assume that you have five pieces of data available to generate your boxes.

- Total Cubic in M3
- Total Weight
- Total Quantity of Items
- Longest item
- This is the longest dimension on any item on the consignment
- Largest item weight
- This is the heaviest item of all the items

The two additional values at the bottom are important as they will allow us to flag in any overlength or item weight based surcharges or service restrictions.

If you're confident that your freight doesn't meet these requirements, then you can use the simpler formula in the next example - but if at all possible, these values should be included in your calculations.

In this example, we are going to assume the following values for our calculations:

- 0.6m3
- 45kg total
- 3 items
- 2 meters longest dimension
- 25kg largest item

Here are the calculation steps to turn this into box data:

1. Divide cubic by items to get 3 equal items = 0.6m3 / 3 = 0.2m3 per item

2. Convert cubic to dimensions

Cubic is calculated using L x W x H, so we need to reverses that

- We know one dimension is 2 meters.

- 0.2m3 / 2m = 0.1m2

- square root of 0.15m2 gives us two equal sides = 0.316m

- convert to cm x 100 = 200cm x 31.6cm x 31.6cm

- these are you item dimensions

3. Set one item to the max weight and divide the others by the remaining items

- 1 x 25kg
- 45 - 25kg = 20kg remains
- 20kg / 2 = 10kg for remaining items

4. Final items are:

- 200 x 31.6 x 31.6 = 25kg x 1
- 200 x 31.6 x 31.6 = 10kg x 2

This would ensure any over length surcharges have been included, the total cubic cm is close and the total weight and items are accounted for.

If you don't know the longest side, or the largest weight - or these aren't a factor for your carriers and services, the math becomes a bit simpler.

In this example, we are going to assume the following values for our calculations:

- 0.6m3
- 45kg total
- 3 items

Here are the calculation steps to turn this into box data:

1. Divide cubic by items to get 3 equal items = 0.6m3 / 3 = 0.2m3 per item

2. Convert cubic to dimensions

Cubic is calculated using L x W x H, so we need to reverses that using cube root

- cube root of 0.2m3 gives us three equal sides = 0.585m

- convert to cm x 100 = 58.5 x 58.5 x 58.5cm

- these are you item dimensions

3. Divide the weight by the items

- 45kg / 3 items
- = 15kg per item

4. Final items are:

- 58.5 x 58.5 x 58.5 = 15kg x 3

To get the cubic closer to exactly matching you may need to set 2 decimals on the final cm value when rounding.

# Related Articles

## Working with items when routing and creating Consignments

When routing or creating consignments, MachShip requires the details of the items that are being sent. MachShip offers multiple ways to specify the items for the consignment/route request. To return prices, at least 1 item must be supplied. Multiple ...## A guide to creating Dangerous Goods Consignments via the API

Creating consignments is at the core of MachShip's functionality. Consignments describe everything related to a job that needs to travel including the pick-up location, delivery location and the individual items themselves. On top of this, a ...## Creating Pending Consignments using the MachShip API

One of the key efficiency targets for any business is to cut out manual tasks and automate as many processes as possible. In the Supply Chain and Logistics sector, a key blocker to this achievement is having prior knowledge of the final shipping ...## A guide to creating Consignments via the API

Creating consignments is at the core of MachShip's functionality. Consignments describe everything related to a job that needs to travel including the pick-up location, delivery location and the individual items themselves. On top of this, a ...## Working with despatch dates when routing and creating Consignments

This guide outlines how to use Despatch date/times effectively when generating routes and creating consignments. Despatch DateTimes are optional and if none are provided, NOW will be used. MachShip allows you to specify the despatch date and time of ...