how to use radiobutton and checkbox to calculations