Calculation of fees and prices