What this calculator measures
Direct material price variance isolates the unit-price difference between what you expected to pay and what you actually paid. The calculator then applies that difference to the actual quantity purchased so you can see the total cost effect in currency terms.
This is a price-only variance. It does not measure quantity usage, scrap, yield, or production efficiency. That separation matters because a business can buy the right quantity at the wrong price, or the wrong quantity at the right price, and those are different management questions.