Number formatting and calculation bug

When a dot is used the problem occurs. When using a comma everything is OK