Start with what the carrier charges you. Add a per-pound (or per-kg) handling line if you use one. Apply a markup you control. This is store math, not a live rate shop.
Customer shipping = (label + weight × handling) × (1 + markup%). Related: product markup, catalog fill.