How is the amount of compensation determined in this situation?
The amount of compensation is determined by considering factors such as the kind of work, the amount of damage incurred by the worker, and the duration of their service.