corrected price calculation