Creating Formulas in custom field to avoid #ERROR

Member for

9 years 3 months

TQ so much Tom Boyle..its work nicely.

Member for

18 years 11 months

Does this work?

IIf([Cost]>0,([ACWP]/[Cost])*100,0)