A lift that picks up an additional component partway through travel does not have one constant gravitational load over the whole stroke. Multiplying the final total weight by the full height overstates the work needed to raise the added component.

Divide the motion at the load transfer
For an illustrative ideal lift, a 2 kg carriage rises 0.5 m and picks up a 1 kg item for the final 0.2 m. The gravitational work is approximately 2 × 9.81 × 0.5 plus 1 × 9.81 × 0.2, or 11.8 J. Friction, acceleration and spring losses are excluded.
The point where the item becomes fully supported matters. A gradual transfer between supports is different from an instantaneous step in the load model.
Check force as well as energy
A spring may provide enough total work while failing to supply sufficient assistance during the more heavily loaded segment. Conversely, a spring chosen for the heaviest segment may over-assist the unloaded segment.
Keep a piecewise load table with the stroke definition. Include the reverse sequence if the mechanism lowers or deposits the item at a different position.
This calculation is a screening tool, not a complete spring selection. It helps the designer explain where assistance is needed instead of giving the supplier only a final payload and total travel.
Related reading: Reading the Free-Body Diagram of a Spring-Assisted Linkage.