How is work done by a force measured?

How is work done by a force measured? A porter lifts a luggage of 20 kg from the ground and puts it on his head 1.7 m above the ground. Find the work done by the porter on the luggage.

Work done by a force is measured by the product of force and displacement when they are in same direction or opposite direction.
Given, m = 20 kg
s =1.7 m [where, m = mass of luggage,g = acceleration due to gravity.]
W = As = mgs
[v A and s are in same direction.]
= 20x 10X 1.7 = 340 J