Title: Error in calculation
Last modified: March 12, 2017

---

# Error in calculation

 *  Resolved [ScaleGuru](https://wordpress.org/support/users/scalegurus/)
 * (@scalegurus)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-calculation/)
 * There appears to be an error in how combined shipping is calculated.
    2 of the
   same items being shipped in separate boxes.
 * When I add an item that costs $400.00 shipping is $20.00
    When I add two of the
   same items, shipping is $50.00
 * After researching what I could to figure out what is happening, I determined 
   that the value being submitted to UPS for insurance is the combined total multiplied
   by the quantity of packages instead of the individual cost. The rates being returned
   from UPS are that of 2 packages being valued at $800 each instead of $400.00 
   each.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [niwf](https://wordpress.org/support/users/niwf/)
 * (@niwf)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-calculation/#post-8906276)
 * [@scalegurus](https://wordpress.org/support/users/scalegurus/),
 * Thanks for letting us about this issue.
    It’s the first time someone has reported
   this issue. We have fixed this in the latest version (1.1.9). Please download
   it.
 *  Thread Starter [ScaleGuru](https://wordpress.org/support/users/scalegurus/)
 * (@scalegurus)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-in-calculation/#post-8910523)
 * Thank you for the quick response and action.
 * The problem is corrected.
 *  [niwf](https://wordpress.org/support/users/niwf/)
 * (@niwf)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-in-calculation/#post-8911204)
 * [@scalegurus](https://wordpress.org/support/users/scalegurus/),
 * Great to know that your issue is resolved.
    Do let us know if you have any query.
   We will help you.
 * Also, if you liked our support/plugin, you can rate us here –
    [https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/reviews/](https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/reviews/)
 * This would be a huge encouragement for us.
 *  [sgclark](https://wordpress.org/support/users/sgclark/)
 * (@sgclark)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-calculation/#post-9059080)
 * I’m still seeing this issue. In the store I built with WP and WC, I put in multiple
   number of one item (7 bottles of a baking spices @ $6.25 each) into the Shopping
   Cart and the UPS API calculated a shipping rate for UPS Ground that totaled $
   67. That can’t be right.
 * I have UPS (BASIC) WooCommerce Shipping version 1.2.2 installed.
 * Site is [http://www.greenpointtrading.co](http://www.greenpointtrading.co).
 * Try the above with this product.
    [https://greenpointtrading.co/seasonings-rubs/seasonings/zaatar/](https://greenpointtrading.co/seasonings-rubs/seasonings/zaatar/)
    -  This reply was modified 9 years, 1 month ago by [sgclark](https://wordpress.org/support/users/sgclark/).
 *  [niwf](https://wordpress.org/support/users/niwf/)
 * (@niwf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-calculation/#post-9060059)
 * [@sgclark](https://wordpress.org/support/users/sgclark/),
 * Could you please provide the debug request and response. So that can analyse 
   your issue quickly.
 *  [sgclark](https://wordpress.org/support/users/sgclark/)
 * (@sgclark)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-calculation/#post-9061235)
 * I turned on “Debug Mode” with your plug in and this is what was displayed on 
   the page. I hope this is what you are asking for. I removed the UN/PW credentials
   from the code for security reasons. Thanks! Stephen
 * UPS REQUEST:
 * <?xml version=”1.0″ ?>
    <AccessRequest xml:lang=’en-US’> <AccessLicenseNumber
   >xxxxxxxxxxxxxxx</AccessLicenseNumber> <UserId>xxxxxxxxxxx</UserId> <Password
   >xxxxxxxxxxxlt;/Password> </AccessRequest> <?xml version=”1.0″ ?> <RatingServiceSelectionRequest
   > <Request> <TransactionReference> <CustomerContext>Rating and Service</CustomerContext
   > <XpciVersion>1.0</XpciVersion> </TransactionReference> <RequestAction>Rate</
   RequestAction> <RequestOption>Rate</RequestOption> </Request> <PickupType> `01`
   <Description>Daily Pickup</Description> </PickupType> <CustomerClassification
   > `99` </CustomerClassification> <Shipment> <Description>WooCommerce Rate Request
   </Description> <Shipper> <ShipperNumber>6A9W92</ShipperNumber> <Address> <AddressLine
   ></AddressLine> <City>Brooklyn</City> <PostalCode>11222</PostalCode> <CountryCode
   >US</CountryCode> </Address> </Shipper> <ShipTo> <Address> <StateProvinceCode
   >NY</StateProvinceCode> <City>ASTORIA</City> <PostalCode>11103</PostalCode> <
   CountryCode>US</CountryCode> </Address> </ShipTo> <ShipFrom> <Address> <AddressLine
   ></AddressLine> <City>Brooklyn</City> <PostalCode>11222</PostalCode> <CountryCode
   >US</CountryCode> </Address> </ShipFrom> <Service> `03` </Service> <Package> 
   <PackagingType> `02` <Description>Package/customer supplied</Description> </PackagingType
   > <Description>Rate</Description> <PackageWeight> <UnitOfMeasurement> `LBS` </
   UnitOfMeasurement> <Weight>0.31249937345</Weight> </PackageWeight> </Package>
   <Package> <PackagingType> `02` <Description>Package/customer supplied</Description
   > </PackagingType> <Description>Rate</Description> <PackageWeight> <UnitOfMeasurement
   > `LBS` </UnitOfMeasurement> <Weight>0.31249937345</Weight> </PackageWeight> 
   </Package> <Package> <PackagingType> `02` <Description>Package/customer supplied
   </Description> </PackagingType> <Description>Rate</Description> <PackageWeight
   > <UnitOfMeasurement> `LBS` </UnitOfMeasurement> <Weight>0.31249937345</Weight
   > </PackageWeight> </Package> <Package> <PackagingType> `02` <Description>Package/
   customer supplied</Description> </PackagingType> <Description>Rate</Description
   > <PackageWeight> <UnitOfMeasurement> `LBS` </UnitOfMeasurement> <Weight>0.31249937345
   </Weight> </PackageWeight> </Package> <Package> <PackagingType> `02` <Description
   >Package/customer supplied</Description> </PackagingType> <Description>Rate</
   Description> <PackageWeight> <UnitOfMeasurement> `LBS` </UnitOfMeasurement> <
   Weight>0.31249937345</Weight> </PackageWeight> </Package> <Package> <PackagingType
   > `02` <Description>Package/customer supplied</Description> </PackagingType> 
   <Description>Rate</Description> <PackageWeight> <UnitOfMeasurement> `LBS` </UnitOfMeasurement
   > <Weight>0.31249937345</Weight> </PackageWeight> </Package> <Package> <PackagingType
   > `02` <Description>Package/customer supplied</Description> </PackagingType> 
   <Description>Rate</Description> <PackageWeight> <UnitOfMeasurement> `LBS` </UnitOfMeasurement
   > <Weight>0.31249937345</Weight> </PackageWeight> </Package> </Shipment> </RatingServiceSelectionRequest
   >
 * UPS RESPONSE:
 * <?xml version=”1.0″?>
    <RatingServiceSelectionResponse><Response><TransactionReference
   ><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0</XpciVersion
   ></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription
   >Success</ResponseStatusDescription></Response><RatedShipment><Service>`03`</
   Service><RatedShipmentWarning>Your invoice may vary from the displayed reference
   rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement>`LBS`</UnitOfMeasurement
   ><Weight>7.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD
   </CurrencyCode><MonetaryValue>54.04</MonetaryValue></TransportationCharges><ServiceOptionsCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges
   ><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>54.04</MonetaryValue
   ></TotalCharges><GuaranteedDaysToDelivery/><ScheduledDeliveryTime/><RatedPackage
   ><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</
   MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD
   </CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue></TotalCharges
   ><Weight>0.4</Weight><BillingWeight><UnitOfMeasurement>`LBS`</UnitOfMeasurement
   ><Weight>1.0</Weight></BillingWeight></RatedPackage><RatedPackage><TransportationCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue></TransportationCharges
   ><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</
   MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode
   ><MonetaryValue>7.72</MonetaryValue></TotalCharges><Weight>0.4</Weight><BillingWeight
   ><UnitOfMeasurement>`LBS`</UnitOfMeasurement><Weight>1.0</Weight></BillingWeight
   ></RatedPackage><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode
   ><MonetaryValue>7.72</MonetaryValue></TransportationCharges><ServiceOptionsCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges
   ><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue
   ></TotalCharges><Weight>0.4</Weight><BillingWeight><UnitOfMeasurement>`LBS`</
   UnitOfMeasurement><Weight>1.0</Weight></BillingWeight></RatedPackage><RatedPackage
   ><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</
   MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD
   </CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue></TotalCharges
   ><Weight>0.4</Weight><BillingWeight><UnitOfMeasurement>`LBS`</UnitOfMeasurement
   ><Weight>1.0</Weight></BillingWeight></RatedPackage><RatedPackage><TransportationCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue></TransportationCharges
   ><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</
   MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode
   ><MonetaryValue>7.72</MonetaryValue></TotalCharges><Weight>0.4</Weight><BillingWeight
   ><UnitOfMeasurement>`LBS`</UnitOfMeasurement><Weight>1.0</Weight></BillingWeight
   ></RatedPackage><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode
   ><MonetaryValue>7.72</MonetaryValue></TransportationCharges><ServiceOptionsCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges
   ><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue
   ></TotalCharges><Weight>0.4</Weight><BillingWeight><UnitOfMeasurement>`LBS`</
   UnitOfMeasurement><Weight>1.0</Weight></BillingWeight></RatedPackage><RatedPackage
   ><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</
   MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD
   </CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges
   ><CurrencyCode>USD</CurrencyCode><MonetaryValue>7.72</MonetaryValue></TotalCharges
   ><Weight>0.4</Weight><BillingWeight><UnitOfMeasurement>`LBS`</UnitOfMeasurement
   ><Weight>1.0</Weight></BillingWeight></RatedPackage></RatedShipment></RatingServiceSelectionResponse
   >
    -  This reply was modified 9 years, 1 month ago by [sgclark](https://wordpress.org/support/users/sgclark/).
    -  This reply was modified 9 years, 1 month ago by [sgclark](https://wordpress.org/support/users/sgclark/).
 *  [niwf](https://wordpress.org/support/users/niwf/)
 * (@niwf)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-calculation/#post-9079020)
 * I just checked the debug data you provided, there is no insurance related issue
   in your debug request.
 * You are getting a higher rate because the plugin treats each item as a separate
   package and it will show a sum price.
 * This version of the plugin is designed for small business owners.
 * The [Pro version](https://www.xadapter.com/product/woocommerce-ups-shipping-plugin-with-print-label/)
   of the plugin has more packaging options such as Box Packing, Weight based Packing.
   So that multiple items can be shipped in a single package.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error in calculation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ups-woocommerce-shipping-method_0073aa.
   svg)
 * [UPS WooCommerce Shipping Method Plugin](https://wordpress.org/plugins/ups-woocommerce-shipping-method/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ups-woocommerce-shipping-method/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/)
 * [Active Topics](https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ups-woocommerce-shipping-method/reviews/)

## Tags

 * [ups](https://wordpress.org/support/topic-tag/ups/)

 * 7 replies
 * 3 participants
 * Last reply from: [niwf](https://wordpress.org/support/users/niwf/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-calculation/#post-9079020)
 * Status: resolved