How to have a pricing schedule that automatically adjusts?

Have a sticker shop that sells other products as well. Would like to put an average cost per sq in or sq ft or whatever other metric to have pricing for “custom quantity” purchases. Any apps/coding that someone could suggest for this functionality?