fix #215 calculate cost * quantity