[#45]Fixed calculate_price