Activity and Job confusion cost

I’m just working around with jsprit. When it comes to the Activity and Job, I’m quite confusion these terms in jsprit, how to manage their cost with a custom CostCalculator