Can't even guess a solution without some reference to the code you have at present, the (Size, Price0 ranges and any other necessary detail.

A link to Square might help, particularly examples for...