added price calculation method