Using If Statement in Checkbox

Using If Statement in Checkbox

I am trying to create a module and i want user to pick a product in the checkbox and product has its different prices.

how can i do it in the formula.. i dont know how to make the formula run when checkboxes are selected.. can someone give me some example of codes.. 

by the way i am creating forms in the module