Attributes
Consider using the Commerce Pricing Attributes module. Here is an excerpt from its project page:
... provides some enhancements to the Commerce Product Option and Commerce Product Attributes handling by applying pricing rules to custom product attributes.
Features:
- Dynamic price calculation based on selected operators.
- Cart combination based on product attributes.
- Support for multi currency.
- Multilingual attributes.
- Different attributes and settings per product.
- Price adjustments either per item or per order.
- Rules integration.
- Easy UI for editing and reordering attributes.
This module depends on Commerce Product Option and Commerce Product Attributes.
Refer to the video about this module for a great introduction about it.
Quantity
From your question it's not realy clear to me what exactly you mean the quantity part of it.
Which is also why I'm not convinced (yet) that you should use the modules
Commerce Price Table or Commerce Pricelist.
However, you should probably consider the Rules module, using some custom Rules, something like so:
- Events = Calculate Sell Price of Product.
- Actions = calculate the price, and set the price to the calculated value.
Not sure (yet) ifff you'd need some extra 'Conditions' added to this.
Refer to Drupal commerce and rules: changing the product price dynamically for an example of dynamically changing product prices.