price calculation v2