Calculated field into DB does not behave as expected

You might want to take a look at this thread. It helps explain how Bubble handles operator precedence , it discusses a workaround, and it mentions plugging that should sort you out.