Any idea how to make this price calculation system work?

Have a look at this tread Simple math Expression for bubble