How to calculate the costs?