How to make a calculation using check boxes?