If then formula for final cost

If then formula for final cost

I am totally new to this and I think it is something simple.

I'm trying to get final cost...This is where I'm at

   If(Margin= =20),(input.Net Cost x 1.25),  If(Margin= =25),(input.Net Cost x 1.33)