Conditional formula not working

Conditional formula not working

Hi

I am trying to use conditional formula in my form to calculate a value from 2 other fields in my form

I am using
if((Chargeable  >  Weight),Chargeable,Weight) to calculate Price.

But it always returns the Weight value instead of the correct one.

Chargeable is also a formula that is calculation by multiplying 3 other fields in the formula.
Weight is just inputted.

Please help.

thanks
Antonis