calculate price and weight