Shipping and handling costs = Packaging costs (P) + Shipping costs (S) + Handling costs (H), or P + S + H. There are three variables in the formula: P = Packaging costs, or the cost of the envelope or box and any packing materials.