I am trying to figure out the best way to calculate this formula. Here is what I have.

If c3 = 1 then I3 = sum of g3 *.15
if c3 = 0 then h3 = sum of g3 * .10

how would I go abot making this into a excel formula?