i have edited my post and added the example

As JosephP replied, looks like your formula maybe correct - but the values not actually equal and so check the decimal places
and apply the round as suggested