How to calculate quantity ordered by unit price