I find it difficult to explain but I'll try; Product has

Hi,
I find it difficult to explain but I'll try;
Product has a base price but I want customer to enter values and the price calculated according to the input.
example: Glass cost 50 euro per square meter so if customer enters 2 x 4 the price is automaticly 8x50= 400.
Is this possible with Marketpress or Woocommerce?