fix calculate cost price